Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.44 KB | None | 0 0
  1. % The below returns the unix epoch in UTC/GMT because of adding tm_struct.gmtoff
  2. tm_struct = strptime ('01-Jan-2001 00:00:00.0', "%d-%b-%Y %X.0 %Z"), mktime (tm_struct) + tm_struct.gmtoff
  3. tm_struct =
  4.  
  5.   scalar structure containing the fields:
  6.  
  7.     usec = 0
  8.     sec = 0
  9.     min = 0
  10.     hour = 0
  11.     mday =  1
  12.     mon = 0
  13.     year =  101
  14.     wday =  1
  15.     yday = 0
  16.     isdst = 0
  17.     gmtoff = -18000
  18.     zone = EST
  19.  
  20. ans =  978307200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement