|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
getting number of elapsed seconds
hi guys,
how can I get the number of seconds elapsed since Jan1 1900 (NTP epoch). I know that "date +%s" gives the number of secs elapsed since Jan 1 1970 what abt getting it since the NTP epoch began |
|
#2
|
|||
|
|||
|
I have no examples, but you actually will need to do a socket request to an NTP server. NTP (as you already) is the number of seconds since Jan 1, 1900.
Internal time in Unix uses elapsed seconds since Jan 1, 1970. VMS (old operating system) maintains a quadword (8 byte integer) with the number of seconds since 1900. Most OS's do not do this. I've tried a Google search on serial time and date - which what you want. I cannot find any quick answers. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > getting number of elapsed seconds |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|