Re: Day of week in straight TCL

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf sending day of the week Re: Day of week in straight TCL

#56638
Tom Henderson
Participant

    set day_of_week [clock format [clock seconds] -format “%A”]

    Which looks more complicated, but eliminates having to exec another process just to get the date

    This returns the full day of the week.  If you want just the 3-letter abbrevation (Sun, Mon, Tue, etc.), use the “%a” format code