Codex

Date::Format

Section: User Contributed Perl Documentation (3pm)

Updated: 2009-12-12

Index?action=index Return to Main Contents


NAME

Date::Format - Date formating subroutines

SYNOPSIS

DESCRIPTION

This module provides routines to format dates into ASCII strings. They correspond to the C library routines and .
time2str(TEMPLATE, TIME [, ZONE])
converts into an ASCII string using the conversion specification given in . if given specifies the zone which the output is required to be in, defaults to your current zone.:
strftime(TEMPLATE, TIME [, ZONE])
is similar to with the exception that the time is passed as an array, such as the array returned by .:
ctime(TIME [, ZONE])
calls with the given arguments using the conversion specification :
asctime(TIME [, ZONE])
calls with the given arguments using the conversion specification :

MULTI-LANGUAGE SUPPORT

Date::Format is capable of formating into several languages by creating a language specific object and calling methods, see Date::Language

I am open to suggestions on this.

CONVERSION SPECIFICATION

Each conversion specification is replaced by appropriate characters as described in the following list. The appropriate characters are determined by the LC_TIME category of the program's locale.

, , , , , , , , , , and can be output in Roman numerals by prefixing the letter with , e.g. will output the year as roman numerals.

LIMITATION

The functions in this module are limited to the time range that can be represented by the time_t data type, i.e. 1901-12-13 20:45:53 GMT to 2038-01-19 03:14:07 GMT.

AUTHOR

Graham Barr <[email protected]>

COPYRIGHT

Copyright (c) 1995-2009 Graham Barr. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Index

NAME

SYNOPSIS

DESCRIPTION

MULTI-LANGUAGE SUPPORT

CONVERSION SPECIFICATION

LIMITATION

AUTHOR

COPYRIGHT