Test::Reporter::Date::Format Perl module contains date formating subroutines.
SYNOPSIS
use Test::Reporter::Date::Format;
@lt = localtime(time);
print time2str($template, time);
print strftime($template, @lt);
print time2str($template, time, $zone);
print strftime($template, @lt, $zone);
print ctime(time);
print asctime(@lt);
print ctime(time, $zone);
print asctime(@lt, $zone);
This module provides routines to format dates into ASCII strings. They correspond to the C library routines strftime and ctime.
time2str(TEMPLATE, TIME [, ZONE])
time2str converts TIME into an ASCII string using the conversion specification given in TEMPLATE. ZONE if given specifies the zone which the output is required to be in, ZONE defaults to your current zone.
strftime(TEMPLATE, TIME [, ZONE])
strftime is similar to time2str with the exception that the time is passed as an array, such as the array returned by localtime.
ctime(TIME [, ZONE])
ctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"
asctime(TIME [, ZONE])
asctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"
Product's homepage
Requirements:
· Perl