孙冰 > Lingua-ZH-DateTime-0.01 > Lingua::ZH::DateTime

Download:
Lingua-ZH-DateTime-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

Lingua::ZH::DateTime - convert time to chinese format.

SYNOPSIS ^

DESCRIPTION ^

This module can convert asctime to chinese format in your locale. you can select china singapore hongkong taiwan locale and gb2312/big5 charset. asctime is ASC C standard format will from localtime like this:

        $asctime = localtime();

METHOD ^

new

        my $zdt = new Lingua::ZH::DateTime(locale=>'china',charset=>'gb2312');

Instantiates a new object.

set

        my $zdt->set(locale=>'china',charset=>'gb2312');

set locale and charset encode.

convert

        $zdt->convert(asctime=>'Thu Oct 13 04:54:34 1994',output=>'date');

AUTHORS ^

Lingua::ZH::DateTime by hoowa sun and Meng.H.

COPYRIGHT ^

The Lingua::ZH::DateTime module is Copyright (c) 2005-2006 hoowa sun & Meng.H P.R.China. All rights reserved.

You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.

WARRANTY ^

The Lingua::ZH::DateTime is free Open Source software.

IT COMES WITHOUT WARRANTY OF ANY KIND.

SUPPORT ^

http://www.perlchina.org