How to Format the time and date
Last Post 04-18-2010 6:11 PM byAshlar. 3 Replies.
    Printer Friendly
    •  
    •  
    •  
    •  
    •  
    Sort:
    PrevPrev NextNext
    You are not authorized to post a reply.
    AuthorMessages
    LanDoctorUser is Offline
    New Member
    New Member
    Send Private Message
    Posts:1
    Member Since: 04-08-2010 12:03 PM
    LanDoctor

    --
    04-09-2010 1:24 PM

      Is there a tutorial out there to show how to format the time and date to something other than the "stock" settings?

      Thanks for your time,

      Donovan

      Scott RoweUser is Offline
      ReefChat Staff
      Basic Member
      Basic Member
      Send Private Message
      Posts:333
      Member Since: 02-17-2007 5:04 PM
      Scott Rowe

      --
      04-09-2010 2:54 PM
      Donovan, check the tcl manual for the command 'clock format'..

      Here's an example..

      [clock format [clock scan $Time] -format "%m/%d/%y %R"]

      would result in a display of 04/09/10 17:53

      Or.. [clock format [clock scan $Time] -format "%m/%d/%Y %I:%M"]

      would result in a display of 04/9/2010 05:53

      I use this one in my signature..

      [clock format [clock scan $Time] -format "%h. %d @%l:%M %p"]

      which results in "Apr. 9 @ 5:53 PM"

      A general reference on this function can be found at http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm under 'clock format'
      Greg ZUser is Offline
      New Member
      New Member
      Send Private Message
      Posts:2
      Member Since: 04-04-2010 12:34 PM
      Greg Z

      --
      04-18-2010 4:46 PM
      I don't want to thread-steal, but my question pertains to this as well, I have an RKE and would like to format my time to show like "Sun, Apr. 18 2010 7:46 PM" in my sig. Would I use similar command strings, or is the RKE totally different. Thanks.
      Scott RoweUser is Offline
      ReefChat Staff
      Basic Member
      Basic Member
      Send Private Message
      Posts:333
      Member Since: 02-17-2007 5:04 PM
      Scott Rowe

      --
      04-18-2010 6:11 PM
      RKE is the same.. basically the [clock scan $Time] command created a time/date object out of the $Time variable, that you can then slice and dice with the [clock format] command.
      You are not authorized to post a reply.


      Active Forums 4.3

      Find Your Group

      No matter how you connect, you'll find your group - whether it's about Nanos or Large Reef Systems, Equipment or Livestock, you'll be able to find your group here.

      Find A Group

      Suggestions

      This is YOUR site, so if you have suggestions or feedback on how we can improve it for you, please let us know! We do our best to keep up!
       

       

      Make A Suggestion

      Get Started

      In just a few steps you'll be able to connect with other members, join and create groups, start a conversation and more.  It only takes a minute and is completely free to join.

      Join ReefChat

      Find Your Group

      No matter how you connect, you'll find your group - whether it's about Nanos or Large Reef Systems, Equipment or Livestock, you'll be able to find your group here.

      Find A Group

      Suggestions

      This is YOUR site, so if you have suggestions or feedback on how we can improve it for you, please let us know! We do our best to keep up!
       

       

      Make A Suggestion

      Get Started

      In just a few steps you'll be able to connect with other members, join and create groups, start a conversation and more.  It only takes a minute and is completely free to join.

      Join ReefChat

       

      Copyright 2010 by ReefChat.org - A reef keeping communityTerms Of UsePrivacy Statement
      belstaff jackethandbags ukprada handbagshandbags salemulberry handbags coach handbags belstaff jacketsbelstaff shop miu miu handbagshandbags on sale