1Time::CTime(3)        User Contributed Perl Documentation       Time::CTime(3)
2
3
4

NAME

6       Time::CTime -- format times ala POSIX asctime
7

SYNOPSIS

9               use Time::CTime
10               print ctime(time);
11               print asctime(localtime(time));
12               print strftime(template, localtime(time));
13
14       strftime conversions
15
16               %%      PERCENT
17               %a      day of the week abbr
18               %A      day of the week
19               %b      month abbr
20               %B      month
21               %c      ctime format: Sat Nov 19 21:05:57 1994
22               %d      DD
23               %D      MM/DD/YY
24               %e      numeric day of the month
25               %f      floating point seconds (milliseconds): .314
26               %F      floating point seconds (microseconds): .314159
27               %h      month abbr
28               %H      hour, 24 hour clock, leading 0's)
29               %I      hour, 12 hour clock, leading 0's)
30               %j      day of the year
31               %k      hour
32               %l      hour, 12 hour clock
33               %m      month number, starting with 1
34               %M      minute, leading 0's
35               %n      NEWLINE
36               %o      ornate day of month -- "1st", "2nd", "25th", etc.
37               %p      AM or PM
38               %r      time format: 09:05:57 PM
39               %R      time format: 21:05
40               %S      seconds, leading 0's
41               %t      TAB
42               %T      time format: 21:05:57
43               %U      week number, Sunday as first day of week
44               %w      day of the week, numerically, Sunday == 0
45               %W      week number, Monday as first day of week
46               %x      date format: 11/19/94
47               %X      time format: 21:05:57
48               %y      year (2 digits)
49               %Y      year (4 digits)
50               %Z      timezone in ascii. eg: PST
51

DESCRIPTION

53       This module provides routines to format dates.  They correspond to the
54       libc routines.  &strftime() supports a pretty good set of coversions --
55       more than most C libraries.
56
57       strftime supports a pretty good set of conversions.
58
59       The POSIX module has very similar functionality.  You should consider
60       using it instead if you do not have allergic reactions to system
61       libraries.
62

GENESIS

64       Written by David Muir Sharnoff <muir@idiom.com>.
65
66       The starting point for this package was a posting by Paul Foley
67       <paul@ascent.com>
68

LICENSE

70       Copyright (C) 1996-1999 David Muir Sharnoff.  License hereby granted
71       for anyone to use, modify or redistribute this module at their own
72       risk.  Please feed useful changes back to muir@idiom.com.
73
74
75
76perl v5.8.8                       2003-11-25                    Time::CTime(3)
Impressum