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

C#

 
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 
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 
Uh sorry, I've been writing Java, try 'readonly' (probably 'static readonly'). epochStart can be a psuedo-constant at the class level as it will never change.

I don't understand why you keep trying to bring Now into the equation. The start time is defined by the epoch start and its tick count, nothing to do with the present.

If you have procs.StartTime then, well, I don't understand the problem any more because that is what you are trying to find, right? Just use that DateTime directly ...
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 
GeneralRe: Getting the date from a timespan Pin
Alan N19-Mar-12 4:26
Alan N19-Mar-12 4:26 
GeneralBind Multi dimension array with datagrid Pin
Dhira Kumar17-Mar-12 0:23
Dhira Kumar17-Mar-12 0:23 
GeneralRe: Bind Multi dimension array with datagrid Pin
Richard MacCutchan17-Mar-12 1:37
mveRichard MacCutchan17-Mar-12 1:37 

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.