date/time.

  • Creator
    Topic
  • #50150
    Kevin Crist
    Participant

    I am taking the OBR 22 (which is time and date) and making an NTE segment and putting that in the in a different format. All is well, except i cannot figure out how to get semicolon’s in the time. Everything i have seen wants you to pull the current system date/time and i do not need that. thanks

Viewing 2 reply threads
  • Author
    Replies
    • #65020
      Tom Rioux
      Participant

      How are you doing your configuration for the date/time in the NTE?

    • #65021
      Kevin Crist
      Participant

      we are using a tcl proc. the date/time is stored as 200807020800.

      we would like it to say 07/02/2008  08:00.

      we have it like we want with the exception of the semicolon in the time.

    • #65022
      Charlie Bursell
      Participant

      I would do it like:

      set dt 200807020800

      # Make it scanable

      regsub — {(d{8})(d+)} $dt {1 2} dt

      # Then smply format it

      set newdt [clock format [clock scan $dt] -format

          “%m/%d/%Y %H:%M”]

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

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10