On 4/26/02 2:39 PM, "Matthew Langford" <[EMAIL PROTECTED]> claimed:

> Here's a test program you can copy into a file named test.c and compile it
> with "cc -o test test.c".  I've included my Solaris output below the
> program, so you can compare.

Cool! Here's what I got:

--------- Begin output ------------------------

a: Fri
A: Friday
b: Apr
B: April
c: 04/26/02 14:46:38
C: Fri Apr 26 14:46:38 2002
d: 26
D: 04/26/02
e: 26
G: G
h: Apr
H: 14
I: 02
j: 116
k: 14
l:  2
m: 04
M: 46
n: 

p: PM
r: 02:46:38 PM
R: 14:46
S: 38
t:      (tab)  T: 14:46:38
u: u
U: 16
V: V
w: 5
W: 16
x: 04/26/02
X: 14:46:38
y: 02
Y: 2002
Z: PDT

--------- End output ------------------

>From this I draw the following conclusions:

1. %Z is broken in Perl's POSIX strftime() function.
2. %C works differently thatn documented in the OS X strftime man page.
   Rather than printing the century number (20), it prints the ctime format.
3. %V and %u don't appear to be supported on OS X, despite what the strftime
   man page says.

Thus, I would guess that just the documentation needs to be updated.

Regards,

David

-- 
David Wheeler                                     AIM: dwTheory
[EMAIL PROTECTED]                                 ICQ: 15726394
http://david.wheeler.net/                      Yahoo!: dew7e
                                               Jabber: [EMAIL PROTECTED]


Reply via email to