Hello together,
I am getting a time-value from a machine in milliseconds from 1970 on. How can I convert this in a humanreadable date like;
Maybe somone can help me directly:
I can convert a normal time to milliseconds from 1970:
Is the no function back, like "fromMillisecondsToDate"?
Thanks alot for helping.
Best,
Stephan
I am getting a time-value from a machine in milliseconds from 1970 on. How can I convert this in a humanreadable date like;
Code:
DateTime.Now
Code:
sbyte []state = new sbyte[100];
ds1994.getClock(state);
state = ds1994.readDevice();
label10.Text = ds1994.getClock(state).ToString();
Code:
DateTime neu = DateTime.Now;
TimeSpan zeit = (neu - new DateTime(1970, 1, 1));
label14.Text = zeit.TotalMilliseconds.ToString();
Thanks alot for helping.
Best,
Stephan