in reply to Date format question
printf("%4d.%02d.%02d\n", $year, $month, $day);
Update:
As BlaisePascal points out, this snippet assumes that the variables already contain what you want to print out; you may need to coerce return values from time functions to get them into the appropriate form.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Date format question
by BlaisePascal (Monk) on Sep 12, 2000 at 03:19 UTC | |
by myocom (Deacon) on Sep 12, 2000 at 03:22 UTC |