The Linux/UNIX gettimeofday() function reports the time in the current Epoch. That Epoch is defined as starting "00:00:00 UTC, January 1, 1970" C# provides a DateTime interface with a similar concept of time in the current Epoch. Just to make life interesting, C# defines the Epoch as being "12:00:00, January 1, 0001". (Note the mysterious absence of UTC in that start...) This is, of course, just some offset. My problem is that I am trying to find out if the offset is some agreed international standard. I must be looking in the wrong place. I see lots of C# code to fiddle with this. But what about us crazy C programmers on Linux? For example, System.DateTime dateTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0); tells the time in the C# Epoch at the start of the Linux/UNIX epoch. I guess I could run this once and save the result as an offset. But I would be a bit happier if there was some agreed value for this so I do not chance getting a bad value from some buggy C# implementation. I'm a suspicious type of guy sometimes. This question has arisen because we I am integrating some fancy Danish reflection measurement device into our Linux apps. The data provided by these devices is timestamped with UTC time - encoded with the C# DateTime functions, e.g., 5246315282908540247, which must have been around 1400 UTC today. Has anyone made an interface between the Linux Epoch and the C# Epoch? It seems to me that for this to work, all involved parties must agree on the elapsed time between C# Epoch start and some more recent Epoch that has greater agreement on how elapsed time is calculated. Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-programming+owner@opensuse.org