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


Lingua-ZH-DateTime documentation  | view source Contained in the Lingua-ZH-DateTime distribution.

Index


NAME

Top

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

SYNOPSIS

Top

DESCRIPTION

Top

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

Top

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

Top

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

COPYRIGHT

Top

WARRANTY

Top

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

IT COMES WITHOUT WARRANTY OF ANY KIND.

SUPPORT

Top

http://www.perlchina.org


Lingua-ZH-DateTime documentation  | view source Contained in the Lingua-ZH-DateTime distribution.