I am looking for tcl script that creates future date

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf I am looking for tcl script that creates future date

  • Creator
    Topic
  • #54307
    Raj
    Participant

      Based on some order mapping  i was looking for  tcl code that can create a  future Datetime based on if the time has expired the current time.

      Here is an exmple  if the current time is like 2:49 PM and if the order was placed at  2:30 PM then since this order time has expired then i will have create  the date to tomorrow instead of today.

      let me know there is any one who has similar or close to this requirement and how did they get this working ?

      Thanks

      Raj

    Viewing 1 reply thread
    • Author
      Replies
      • #80955
        Keith McLeod
        Participant

          There are a couple of ways to do this.  Have you tried using “clock scan” command.  It accepts things like:

          clock scan “3 days ago”

          clock scan tomorrow

          clock scan “1 day”

          clock format [clock scan tomorrow] -format “%Y%m%d”

          if you want to format your output….

        • #80956
          Russ Ross
          Participant

            There is a discussion at this URL

            <a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=2828&#8243; class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=2828

            about ways to calculate time differences.

            I have a post of my own that shows how I kill scheduling messages that hit the cloverleaf engine that are older than 6 hours by calling an agrument drive proc ( oth_check_time_span.tcl ) from within a TrxId proc.

            There is also a get it done non-argument driven example at the URL above from Keith McLeod.

            Russ Ross
            RussRoss318@gmail.com

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