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

DESCRIPTION

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

GENESIS

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

LICENSE

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