[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 4436 Date : 2003-04-24 Author : Garry Deane Subject : Re: Date Macro Size(KB) : 1
--- In xxcopy@yahoogroups.com, Kan Yabumoto wrote: > Here's the list of current macro keywords: > > Keyword comment > ------------------------------------------------------ > YYYY 4-digit year (good for 10000 years) > YY 2-digit year (good for a century) > Y 1-digit year (good for a decade) > MM 2-digit month > MON 3-letter month name > DD 2-digit day > HH 2-digit hour (0-23) > NN 2-digit minute > SS 2-digit second > DATE same as MMDD > TIME same as HHNN > WWW 3-letter day of week name > W 1-digit day of week (Sun:0 - Sat:6) > ------------------------------------------------------ Kan, If you're going to follow ISO 8601, that last macro for day of the week is wrong. It should be Mon:1 - Sun:7. http://www.iso.ch/iso/en/prods-services/popstds/datesandtime.html You could even go the whole hog and include ISO Week No ($WW$ or $WK$?) so someone could create the alternate date format in the form 2003-W14-2 (yyyy-Wweekno-dayofweek). Although the following is a bit clumsy it is feasible. /$yyyy$-W/$ww-w$ Can't say I've ever had any use for that date format though. Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.