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.

  • locale -> china only now.

  • charset -> gb2312 only now.

convert

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

  • output -> output in 3 types: date,time,datetime.

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