NetTalk Central

Author Topic: Datetime Question  (Read 3140 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Datetime Question
« on: December 29, 2020, 05:11:35 PM »
how i can convert this "2019-05-13T12:34:56Z"  in seconds

i try this stringtheory example  but don't  what is (s)

dfmt   StringDeformat
r      real
d      long
t      long
  code
  r = dfmt.DeformatUnixTimeStamp('1 Jan 2019 T 11:55am')
  t = dfmt.DeformatUnixTimeStamp(s)
  d = dfmt.DeformatUnixTimeStamp(s)

Jane

  • Sr. Member
  • ****
  • Posts: 371
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Datetime Question
« Reply #1 on: December 29, 2020, 07:28:20 PM »
You might try playing with the example program in the Examples\StringTheory3\Formatting folder.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Datetime Question
« Reply #2 on: December 29, 2020, 10:11:53 PM »
That example should read;

dfmt   StringDeformat
r      real
d      long
t      long
  code
  r = dfmt.DeformatUnixTimeStamp('1 Jan 2019 T 11:55am')
  t = dfmt.DeformatUnixTimeStamp(r)
  d = dfmt.DeformatUnixTimeStamp(r)

cheers
Bruce