Syntax
set date_format "%A, %B %d/%Y"
set time_format " %I:%M %p"
Description
quotes are required
define date and time formats. same format as used by
Tcl/Tk
%a - Abbreviated weekday name (Mon, Tue, etc.)
%A - Full weekday name (Monday, Tuesday, etc.)
%b - Abbreviated month name (Jan, Feb, etc.)
%B - Full month name
%c - Locale specific date and time
%d - Day of month (01 - 31)
%H - Hour in 24-hour format (00 - 23)
%I - Hour in 12-hour format (00 - 12)
%j - Day of year (001 - 366)
%m - Month number (01 - 12)
%M - Minute (00 - 59)
%p - AM/PM indicator
%S - Seconds (00 - 59)
%U - Week of year (00 - 52), Sunday is the first day of the week
%w - Weekday number (Sunday = 0)
%W - Week of year (00 - 52), Monday is the first day of the week
%x - Locale specific date format
%X - Locale specific time format
%y - Year without century (00 - 99)
%Y - Year with century (e.g. 1990)
%Z - Time zone name
Depending on the platform you're running tkblog on, the following may also work
%Q - Stardate :)
%D - Date as %m/%d/%y
%e - Day of month (1 - 31), no leading zeros
%h - Abbreviated month name
%n - Insert a newline
%r - Time as %I:%M:%S %p
%R - Time as %H:%M
%t - Insert a tab
# %T - Time as %H:%M:%S