1
Answer

time(NULL) in C# ?

Ask a question
oneneno

oneneno

19y
4k
1
hi, Im have to port a Unix projekt to C# /* the timestamp in the id fields uses NTP time format and is in seconds * since 00:00 (midnight) 1 January 1900; i.e. we must add 70 years * (including the leap days) to the UNIX time stamp (seconds since beginning * of 1970) */ #define UNIX_NTP_DIFF 2208988800U clock_correction = server_seconds - UNIX_NTP_DIFF - time(NULL); What means UNIX_NTP_DIFF and time(NULL) in C# ??? best regards

Answers (1)