GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATETIME::FORMAT::ROMAN (3)

.ds Aq ’

NAME

DateTime::Format::Roman - Roman day numbering for DateTime objects

CONTENTS

SYNOPSIS



  use DateTime::Format::Roman;

  my $formatter = DateTime::Format::Roman->new(
                      pattern => %d %f %b %y );

  my $dt = DateTime->new( year => 2003, month => 5, day => 28 );

  $formatter->format_datetime($dt);
   # 5 Kal Jun 2003



DESCRIPTION

This module formats dates in the Roman style.

The Romans expressed their dates in relation to three fixed dates per month. For example: the Ides of March was the 15th of that month; 14 March was called 2 Ides, 13 March was called 3 Ides, etcetera. The days in the second half of the month were named after the first day of the next month, the Kalends; e.g. 16 March was called 17 Kalends of April.

METHODS

o new( pattern => $string )

Creates a new formatter object. The optional formatting pattern defines the format of the output of format_datetime(). If no formatting pattern is given, a reasonable default is used.

o format_datetime($datetime)

Retruns the formatted string. This method can be called on a formatter object (created by new()), or it can be called as a class method. In the latter case, the default pattern is used.

    PATTERN SPECIFIERS

The following specifiers are allowed in the format strings given to the new() method:
o %b

The abbreviated month name.

o %B

The full month name.

o %d

The day of the month as a decimal number (including ’1’ for the fixed days).

o %D

The day of the month, written as a number plus the corresponding fixed day.

o %f

The ’fixed day’ part of the date.

o %m

The month as a decimal number (range 1 to 12).

o %y

The year as a decimal number.

If a specifier is preceded by ’O’ or ’o’, numbers will be written in uppercase and lowercase Roman numerals, respectively.

The %f specifier accepts an additional argument of 1 digit, specifying the length of the output:



    %0f : abbreviated name (e.g. "Kal")
    %1f : full name (e.g. "Kalends")
    %2f : one-letter abbreviation (e.g. "K")



SUPPORT

Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details.

Note that this is a beta release. The interface *will* change, especially the format specifiers, and the way the fixed days are returned.

AUTHOR

Eugene van der Pijll <pijll@gmx.net>

COPYRIGHT

Copyright (c) 2003, 2004 Eugene van der Pijll. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

DateTime

datetime@perl.org mailing list

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATETIME::FORMAT::ROMAN (3) 2004-10-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.