NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on December 29, 2020, 05:11:35 PM

Title: Datetime Question
Post by: osquiabro 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)
Title: Re: Datetime Question
Post by: Jane on December 29, 2020, 07:28:20 PM
You might try playing with the example program in the Examples\StringTheory3\Formatting folder.

Title: Re: Datetime Question
Post by: Bruce 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