home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: InfoMgt
/
InfoMgt.zip
/
ltclock5.zip
/
POSIX.FRM
< prev
Wrap
Text File
|
1995-10-29
|
7KB
|
100 lines
Time/Date definition
====================
Place the environment variable LTC_FORM in your config.sys, make
sure you DO NOT put quotes around the string, unless you want them
in the title bar.
You can mix and match any of the following specifiers, and you
can place regular text between them, for example
SET LTC_FORM=%a, %b %d -> %I:%M%p
results in a time/date format which will look something like:
___________________________________________________
[O] Title [Mon, Feb 7 -> 9:34PM][-][ ]
---------------------------------------------------
| |
| |
===================================================
┌──────────────────┬─────────────────────────────────────────────────┐
│ Specifier │ Result │
├──────────────────┼─────────────────────────────────────────────────┤
│ %a │ Replace with abbreviated weekday name of │
│ │ locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %A │ Replace with full weekday name of locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %b │ Replace with abbreviated month name of locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %B │ Replace with full month name of locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %c │ Replace with date and time of locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %C │ Replace with locale's century number (year │
│ │ divided by 100 and truncated) │
├──────────────────┼─────────────────────────────────────────────────┤
│ %d │ Replace with day of the month (01-31). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %D │ Insert date in mm/dd/yy form, regardless of │
│ │ locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %e │ Insert month of the year as a decimal number │
│ │ ("01"-"12"). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %h │ Replace with locale's abbreviated month name. │
│ │ This is the same as %b. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %H │ Replace with hour (24-hour clock) as a decimal │
│ │ number (00-23). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %I │ Replace with hour (12-hour clock) as a decimal │
│ │ number (01-12). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %j │ Replace with day of the year (001-366). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %m │ Replace with month (01-12). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %M │ Replace with minute (00-59). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %p │ Replace with the locale's equivalent of AM or │
│ │ PM. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %r │ Replace with a string equivalent to %I:%M:%S │
│ │ %p. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %R │ Replace with time in 24 hour notation (%H:%M) │
├──────────────────┼─────────────────────────────────────────────────┤
│ %S │ Replace with second (00-61). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %T │ Replace with a string equivalent to %H:%M:%S. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %u │ Replace with the weekday as a decimal number (1 │
│ │ to 7), with 1 representing Monday. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %U │ Replace with week number of the year (00-53) │
│ │ where Sunday is the first day of the week. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %V │ Replace with week number of the year (01-53) │
│ │ where Monday is the first day of the week. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %w │ Replace with weekday (0-6) where Sunday is 0. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %W │ Replace with week number of the year (00-53) │
│ │ where Monday is the first day of the week. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %x │ Replace with date representation of locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %X │ Replace with time representation of locale. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %y │ Replace with year without the century (00-99). │
├──────────────────┼─────────────────────────────────────────────────┤
│ %Y │ Replace with year with century. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %Z │ Replace with name of time zone, or no charac- │
│ │ ters if time zone is not available. │
├──────────────────┼─────────────────────────────────────────────────┤
│ %% │ Replace with %. │
└──────────────────┴─────────────────────────────────────────────────┘