Re: A variant of the DateTime data type needed in VB.NET
From: Jay B. Harlow [MVP - Outlook] (Jay_Harlow_MVP_at_msn.com)
Date: 02/26/05
- Next message: Herfried K. Wagner [MVP]: "Re: delete file problem"
- Previous message: Michael Proctor: "Re: delete file problem"
- In reply to: Cor Ligthert: "Re: A variant of the DateTime data type needed in VB.NET"
- Next in thread: Cor Ligthert: "Re: A variant of the DateTime data type needed in VB.NET"
- Reply: Cor Ligthert: "Re: A variant of the DateTime data type needed in VB.NET"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 26 Feb 2005 09:54:38 -0600
Cor,
> A datetime is actual a value that contains ticks from a certain start date
> (which differs by instance when it is from a server or is internally).
A datetime is actually a value that contains "100-nanosecond units called
ticks, and a particular date is the number of ticks since 12:00 midnight,
January 1, 1 A.D. (C.E.) in the GregorianCalendar calendar."
Notice it explicitly states that it is an instace from a specific point of
time.
This should not be confused with Local Time & Universal Time. Universal Time
is based on GMT, while Local Time is based your current local. In both cases
the value is represented by "the number of ticks since 12:00 midnight,
January 1, 1 A.D. (C.E.)"
Hope this helps
Jay
"Cor Ligthert" <notmyfirstname@planet.nl> wrote in message
news:umCkDz9GFHA.580@TK2MSFTNGP15.phx.gbl...
> Alan,
>
> A datetime is actual a value that contains ticks from a certain start date
> (which differs by instance when it is from a server or is internally).
>
> You use methods to show that and to manipulate.
>
> One of them is
>
> DateTime.AddDays(-x), what is maybe the most properiate for you to use in
> a routine.
>
> Cor
>
- Next message: Herfried K. Wagner [MVP]: "Re: delete file problem"
- Previous message: Michael Proctor: "Re: delete file problem"
- In reply to: Cor Ligthert: "Re: A variant of the DateTime data type needed in VB.NET"
- Next in thread: Cor Ligthert: "Re: A variant of the DateTime data type needed in VB.NET"
- Reply: Cor Ligthert: "Re: A variant of the DateTime data type needed in VB.NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|