Current Date variable in cloverleaf

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Current Date variable in cloverleaf

  • Creator
    Topic
  • #53918
    Hina Siddiqui
    Participant

      Source                                             Destination

      @month                                               @current_month

      Will this give me current month in cloverleaf or do i need to include

      set xlateOutVals

        -format “%m”]]

        above tcl code with it.

      Viewing 3 reply threads
      • Author
        Replies
        • #79523
          Jim Kosloskey
          Participant

            Hina,

            Here are some of the built-in temp variables and their values:

            TEST XLTECHO v1.1:


            Start


            TEST XLTECHO v1.1: Source element >0@active_null<.

            TEST XLTECHO v1.1: Source element >1@dateFri Nov 15 15:14:19 2013<.

            TEST XLTECHO v1.1: Source element >2@dayFri<.

            TEST XLTECHO v1.1: Source element >3@mday15<.

            TEST XLTECHO v1.1: Source element >4@monthNov<.

            TEST XLTECHO v1.1: Source element >5@nowFri Nov 15 15:14:19 2013<.

            TEST XLTECHO v1.1: Source element >6@time15:14:19<.

            TEST XLTECHO v1.1: Source element >7@y213<.

            TEST XLTECHO v1.1: Source element >8@y42013<.

            TEST XLTECHO v1.1: Source element >9@xltecho_debugY<.

            TEST XLTECHO v1.1:


            End


            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

          • #79524
            Hina Siddiqui
            Participant

              Thanks a lot.

              Really Helpful 🙂

            • #79525
              Robert Milfajt
              Participant

                Jim, thanks for this.  One question is there a @mmonth or similar with month number, i.e., 11??

                Bob

                Robert Milfajt
                Northwestern Medicine
                Chicago, IL

              • #79526
                Jim Kosloskey
                Participant

                  Bob,

                  Not that I can find in Cloverleaf 6.0.

                  By the way to get this I used an echo proc I have and simply put all of the default temp variables in to be displayed.

                  The use of this reusable proc really helps me when I am trying to analyze complex ITERATE and/or IF nestings – especially knowing what the counter values are at any given point.

                  I note with interest the new (to me anyway) temp variable @active_null which shows no difference with @null.

                  I have not looked at the xlateInType for @active_null though to see if that has ‘null’ in it.

                  So at this time I really don’t know the value of @active_null or its intent.

                  email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

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