Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.3: Add the date to the menubar clock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Add the date to the menubar clock
Authored by: cynikal on Nov 20, '03 03:57:05PM
Or we could just post em here:

    Symbol   Meaning                 Presentation       Example
    ------   -------                 ------------       -------
    G        era designator          (Text)             AD
    y        year                    (Number)           1996
    Y        year/week of year       (Number)           1996
    M        month in year           (Text & Number)    July & 07
    d        day in month            (Number)           10
    h        hour in am/pm (1~12)    (Number)           12
    H        hour in day (0~23)      (Number)           0
    m        minute in hour          (Number)           30
    s        second in minute        (Number)           55
    S        millisecond             (Number)           978
    E        day of week             (Text)             Tuesday
    e        day of week/local (1~7) (Number)           2
    D        day of year             (Number)           189
    F        day of week in month    (Number)           2 (2nd Wed in July)
    w        week in year            (Number)           27
    W        week in month           (Number)           2
    a        am/pm marker            (Text)             PM
    k        hour in day (1~24)      (Number)           24
    K        hour in am/pm (0~11)    (Number)           0
    z        time zone               (Text)             Pacific Standard Time
    '        escape for text
    ''       single quote                               '

The count of pattern letters determine the format.

(Text): 4 or more, use full form, (Number): the minimum number of digits. Shorter numbers are zero-padded to this amount (e.g. if "m" produces "6", "mm" produces "06"). Year is handled specially; that is, if the count of 'y' is 2, the Year will be truncated to 2 digits. (e.g., if "yyyy" produces "1997", "yy" produces "97".)

(Text & Number): 3 or over, use text, otherwise use number. (e.g., "M" produces "1", "MM" produces "01", "MMM" produces "Jan", and "MMMM" produces "January".)

[ Reply to This | # ]