Test::Reporter::Date::Format

Test::Reporter::Date::Format Perl module contains date formating subroutines.
Download

Test::Reporter::Date::Format Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graham Barr
  • Publisher web site:
  • http://search.cpan.org/~gbarr/

Test::Reporter::Date::Format Tags


Test::Reporter::Date::Format Description

Test::Reporter::Date::Format Perl module contains date formating subroutines. 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 )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 )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 )ctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn"asctime(TIME )asctime calls time2str with the given arguments using the conversion specification "%a %b %e %T %Yn" Requirements: · Perl


Test::Reporter::Date::Format Related Software