The @time variable…

Clovertech Forums Read Only Archives Cloverleaf Tcl Library The @time variable…

  • Creator
    Topic
  • #53197
    Corey Lewis
    Participant

      I have a tcl proc that concats the @date and @time together to get a 12 digit date field.  My problem is our servers are located on East coast time, so when I am sending records the time is a hour ahead of my actual time.  Is there a way to subtract an hour from the time.

      Here is my proc, don’t laugh too hard, I am new at this who TCL stuff.

      lassign $xlateInVals date time

      #Format the current date and time

      set date12

        %Y%m%d]]

        set time4

          0 4]]

          set time4

            ]

            #Append current time to the 8 digit date field

            append date12 $time4

            set xlateOutVals $date12

          Viewing 2 reply threads
          • Author
            Replies
            • #76882
              David Barr
              Participant

                fmtclock has a “zone” parameter you could probably use to get the time in a different zone.

              • #76883
                Chris Williams
                Participant

                  fmtclock is just a front-end for the clock command. Depending on the version of Tcl you have installed, the clock command may not support the

                • #76884
                  Corey Lewis
                  Participant

                    I am fairly new to TCL and Cloverleaf.  I am just excited when I get the code to work, so I don’t question whether or not it’s the most logical way to do it.

                    With a little help, I was able to replace the proc with just the fmtclock command.

                    I appreciate the responses.

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