DateTime-Format-Japanese

 view release on metacpan or  search on metacpan

CHANGES  view on Meta::CPAN

  - This version was never released.
  - Allow user to specify input and output encoding

0.01
  - Be more explicit about requiring perl >= 5.7 in Build.PL
    (reported via CPAN Testers "Barbie")
  - Doc tweaks

0.01_02 08 Feb 2004
  - Add DateTime::Format::Japanese::Traditional for processing
    traditional Japanese calendar notation.
  - Installation of DT::F::J::Traditional is optional
  - minor fixes

0.01_01 03 Feb 2004
  - Initial alpha release.
  - This release contains parsing/formatting of modern Japanese dates only
  - Grudgingly require perl >= 5.7.x.

lib/DateTime/Format/Japanese.pm  view on Meta::CPAN

Formats the year using the Japanese era notation.

=item FORMAT_GREGORIAN

Formats the year using the Gregorian notation

=back

=head2 with_gregorian_marker()

Get/Set the option to include the gregorian calendar marker ("西暦")

=head2 with_bc_marker()

Get/Set the option to include the "B.C." marker instead of a negative year.

=head2 with_ampm_marker()

Get/Set the option to include the AM/PM marker. Implies that the hour
notation is swictched to 1-12 from 1-23

lib/DateTime/Format/Japanese/Traditional.pm  view on Meta::CPAN


=head1 METHODS

=head2 new()

This constructor will create a DateTime::Format::Japanese object.
You may optionally pass any of the following parameters:

  number_format           - how to format numbers (default: FORMAT_KANJI)
  month_format            - how to format months (default: FORMAT_NUMERIC_MONTH)
  with_traditional_marker - use traditional calendar marker (default: 0)

Please note that all of the above parameters only take effect for
I<formatting>, and not I<parsing>. Parsing is done in a way such
that it accepts any of the known formats that this module can produce.

=head2 $fmt-E<gt>parse_datetime($string)

This function will parse a traditional Japanese date/time string and convert
it to a DateTime::Calendar::Japanese object. If the parsing is unsuccessful
it will croak.



( run in 0.478 second using v1.01-cache-2.11-cpan-5dc5da66d9d )