Lingua::ZH::DateTime - convert time to chinese format.
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:
localtime
$asctime = localtime();
my $zdt = new Lingua::ZH::DateTime(locale=>'china',charset=>'gb2312');
Instantiates a new object.
my $zdt->set(locale=>'china',charset=>'gb2312');
set locale and charset encode.
locale -> china only now.
charset -> gb2312 only now.
$zdt->convert(asctime=>'Thu Oct 13 04:54:34 1994',output=>'date');
ctime -> input asctime data.
output -> output in 3 types: date,time,datetime.
Lingua::ZH::DateTime by hoowa sun and Meng.H.
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.
The Lingua::ZH::DateTime is free Open Source software.
IT COMES WITHOUT WARRANTY OF ANY KIND.
http://www.perlchina.org
To install Lingua::ZH::DateTime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::ZH::DateTime
CPAN shell
perl -MCPAN -e shell install Lingua::ZH::DateTime
For more information on module installation, please visit the detailed CPAN module installation guide.