home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / ltclock5.zip / POSIX.FRM < prev   
Text File  |  1995-10-29  |  7KB  |  100 lines

  1. Time/Date definition
  2. ====================
  3.  
  4. Place the environment variable LTC_FORM in your config.sys, make
  5. sure you DO NOT put quotes around the string, unless you want them
  6. in the title bar.
  7.  
  8. You can mix and match any of the following specifiers, and you
  9. can place regular text between them, for example
  10.  
  11. SET LTC_FORM=%a, %b %d -> %I:%M%p
  12.  
  13. results in a time/date format which will look something like:
  14. ___________________________________________________
  15. [O] Title              [Mon, Feb 7 -> 9:34PM][-][ ]
  16. ---------------------------------------------------
  17. |                                                 |
  18. |                                                 |
  19. ===================================================
  20.  
  21.  ┌──────────────────┬─────────────────────────────────────────────────┐
  22.  │ Specifier        │ Result                                          │
  23.  ├──────────────────┼─────────────────────────────────────────────────┤
  24.  │ %a               │ Replace with abbreviated weekday name of        │
  25.  │                  │ locale.                                         │
  26.  ├──────────────────┼─────────────────────────────────────────────────┤
  27.  │ %A               │ Replace with full weekday name of locale.       │
  28.  ├──────────────────┼─────────────────────────────────────────────────┤
  29.  │ %b               │ Replace with abbreviated month name of locale.  │
  30.  ├──────────────────┼─────────────────────────────────────────────────┤
  31.  │ %B               │ Replace with full month name of locale.         │
  32.  ├──────────────────┼─────────────────────────────────────────────────┤
  33.  │ %c               │ Replace with date and time of locale.           │
  34.  ├──────────────────┼─────────────────────────────────────────────────┤
  35.  │ %C               │ Replace with locale's century number (year      │
  36.  │                  │ divided by 100 and truncated)                   │
  37.  ├──────────────────┼─────────────────────────────────────────────────┤
  38.  │ %d               │ Replace with day of the month (01-31).          │
  39.  ├──────────────────┼─────────────────────────────────────────────────┤
  40.  │ %D               │ Insert date in mm/dd/yy form, regardless of     │
  41.  │                  │ locale.                                         │
  42.  ├──────────────────┼─────────────────────────────────────────────────┤
  43.  │ %e               │ Insert month of the year as a decimal number    │
  44.  │                  │ ("01"-"12").                                    │
  45.  ├──────────────────┼─────────────────────────────────────────────────┤
  46.  │ %h               │ Replace with locale's abbreviated month name.   │
  47.  │                  │ This is the same as %b.                         │
  48.  ├──────────────────┼─────────────────────────────────────────────────┤
  49.  │ %H               │ Replace with hour (24-hour clock) as a decimal  │
  50.  │                  │ number (00-23).                                 │
  51.  ├──────────────────┼─────────────────────────────────────────────────┤
  52.  │ %I               │ Replace with hour (12-hour clock) as a decimal  │
  53.  │                  │ number (01-12).                                 │
  54.  ├──────────────────┼─────────────────────────────────────────────────┤
  55.  │ %j               │ Replace with day of the year (001-366).         │
  56.  ├──────────────────┼─────────────────────────────────────────────────┤
  57.  │ %m               │ Replace with month (01-12).                     │
  58.  ├──────────────────┼─────────────────────────────────────────────────┤
  59.  │ %M               │ Replace with minute (00-59).                    │
  60.  ├──────────────────┼─────────────────────────────────────────────────┤
  61.  │ %p               │ Replace with the locale's equivalent of AM or   │
  62.  │                  │ PM.                                             │
  63.  ├──────────────────┼─────────────────────────────────────────────────┤
  64.  │ %r               │ Replace with a string equivalent to %I:%M:%S    │
  65.  │                  │ %p.                                             │
  66.  ├──────────────────┼─────────────────────────────────────────────────┤
  67.  │ %R               │ Replace with time in 24 hour notation (%H:%M)   │
  68.  ├──────────────────┼─────────────────────────────────────────────────┤
  69.  │ %S               │ Replace with second (00-61).                    │
  70.  ├──────────────────┼─────────────────────────────────────────────────┤
  71.  │ %T               │ Replace with a string equivalent to %H:%M:%S.   │
  72.  ├──────────────────┼─────────────────────────────────────────────────┤
  73.  │ %u               │ Replace with the weekday as a decimal number (1 │
  74.  │                  │ to 7), with 1 representing Monday.              │
  75.  ├──────────────────┼─────────────────────────────────────────────────┤
  76.  │ %U               │ Replace with week number of the year (00-53)    │
  77.  │                  │ where Sunday is the first day of the week.      │
  78.  ├──────────────────┼─────────────────────────────────────────────────┤
  79.  │ %V               │ Replace with week number of the year (01-53)    │
  80.  │                  │ where Monday is the first day of the week.      │
  81.  ├──────────────────┼─────────────────────────────────────────────────┤
  82.  │ %w               │ Replace with weekday (0-6) where Sunday is 0.   │
  83.  ├──────────────────┼─────────────────────────────────────────────────┤
  84.  │ %W               │ Replace with week number of the year (00-53)    │
  85.  │                  │ where Monday is the first day of the week.      │
  86.  ├──────────────────┼─────────────────────────────────────────────────┤
  87.  │ %x               │ Replace with date representation of locale.     │
  88.  ├──────────────────┼─────────────────────────────────────────────────┤
  89.  │ %X               │ Replace with time representation of locale.     │
  90.  ├──────────────────┼─────────────────────────────────────────────────┤
  91.  │ %y               │ Replace with year without the century (00-99).  │
  92.  ├──────────────────┼─────────────────────────────────────────────────┤
  93.  │ %Y               │ Replace with year with century.                 │
  94.  ├──────────────────┼─────────────────────────────────────────────────┤
  95.  │ %Z               │ Replace with name of time zone, or no charac-   │
  96.  │                  │ ters if time zone is not available.             │
  97.  ├──────────────────┼─────────────────────────────────────────────────┤
  98.  │ %%               │ Replace with %.                                 │
  99.  └──────────────────┴─────────────────────────────────────────────────┘
  100.