Click here to Skip to main content
15,891,951 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting the date from a timespan Pin
Luc Pattyn18-Mar-12 2:06
sitebuilderLuc Pattyn18-Mar-12 2:06 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie18-Mar-12 4:47
CCodeNewbie18-Mar-12 4:47 
GeneralRe: Getting the date from a timespan Pin
Dave Kreskowiak18-Mar-12 7:26
mveDave Kreskowiak18-Mar-12 7:26 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie18-Mar-12 7:32
CCodeNewbie18-Mar-12 7:32 
GeneralRe: Getting the date from a timespan Pin
jschell18-Mar-12 7:26
jschell18-Mar-12 7:26 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie18-Mar-12 7:41
CCodeNewbie18-Mar-12 7:41 
GeneralRe: Getting the date from a timespan Pin
jschell19-Mar-12 8:30
jschell19-Mar-12 8:30 
Answerbooted=DateTime.Now.AddMilliseconds(-Environment.TickCount); Pin
Luc Pattyn18-Mar-12 9:46
sitebuilderLuc Pattyn18-Mar-12 9:46 
Oh my.

1.
CCodeNewbie wrote:
is in nano seconds (Ticks)
no, ticks is not the same as nanoseconds.

2. forget about 1601, there were no computers back then. Use DateTime exclusively, without worrying about its origin. Just add ticks, seconds, or whatever it is you have.

3. from another of your posts, I get it your description is still no good, as you want to know when the idle process got launched, which amounts to when the system got booted. There is this[^] to handle that, mind you, they unfortunately have chosen a very confusing property name.



Hmmm | :|
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: Getting the date from a timespan Pin
BobJanova19-Mar-12 0:20
BobJanova19-Mar-12 0:20 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 1:25
CCodeNewbie19-Mar-12 1:25 
GeneralRe: Getting the date from a timespan Pin
BobJanova19-Mar-12 1:44
BobJanova19-Mar-12 1:44 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 3:22
CCodeNewbie19-Mar-12 3:22 
GeneralRe: Getting the date from a timespan Pin
BobJanova19-Mar-12 3:52
BobJanova19-Mar-12 3:52 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 4:21
CCodeNewbie19-Mar-12 4:21 
GeneralRe: Getting the date from a timespan Pin
BobJanova19-Mar-12 6:37
BobJanova19-Mar-12 6:37 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 6:59
CCodeNewbie19-Mar-12 6:59 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 12:18
CCodeNewbie19-Mar-12 12:18 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie18-Mar-12 8:24
CCodeNewbie18-Mar-12 8:24 
GeneralSince I can't reply to Luc's message Pin
CCodeNewbie18-Mar-12 10:00
CCodeNewbie18-Mar-12 10:00 
AnswerRe: Since I can't reply to Luc's message Pin
Ravi Bhavnani18-Mar-12 18:03
professionalRavi Bhavnani18-Mar-12 18:03 
AnswerRe: Getting the date from a timespan Pin
Alan N19-Mar-12 2:58
Alan N19-Mar-12 2:58 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 3:06
CCodeNewbie19-Mar-12 3:06 
GeneralRe: Getting the date from a timespan Pin
Alan N19-Mar-12 3:54
Alan N19-Mar-12 3:54 
GeneralRe: Getting the date from a timespan Pin
CCodeNewbie19-Mar-12 4:23
CCodeNewbie19-Mar-12 4:23 
GeneralRe: Getting the date from a timespan Pin
BobJanova19-Mar-12 3:56
BobJanova19-Mar-12 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.