sending day of the week

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf sending day of the week

  • Creator
    Topic
  • #47758
    Kathy Young
    Participant

    I have a system that wants the day of the week sent in the outbound message. I know that if I use the “date” command, I can see the day of the week. Is there any way to incorporate this into a tcl and send the day in my outbound message?

    CL 3.8.1 on AIX 5.1

    Thanks! Kathy

Viewing 2 reply threads
  • Author
    Replies
    • #56636
      Bill Bertera
      Participant

      set day [string range [exec date] 0 3]

    • #56637
      Kathy Young
      Participant

      Sweet! Thanks. Bill

    • #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

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,127
Forums
28
Topics
9,299
Replies
34,443
Topic Tags
288
Empty Topic Tags
10