Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
QuestionDateTime of 24 hours former ? Pin
Mohammad Dayyan26-Sep-09 5:58
Mohammad Dayyan26-Sep-09 5:58 
AnswerRe: DateTime of 24 hours former ? Pin
dan!sh 26-Sep-09 6:02
professional dan!sh 26-Sep-09 6:02 
GeneralRe: DateTime of 24 hours former ? Pin
Mohammad Dayyan26-Sep-09 6:07
Mohammad Dayyan26-Sep-09 6:07 
GeneralRe: DateTime of 24 hours former ? Pin
Luc Pattyn26-Sep-09 6:32
sitebuilderLuc Pattyn26-Sep-09 6:32 
GeneralRe: DateTime of 24 hours former ? Pin
Ennis Ray Lynch, Jr.26-Sep-09 7:08
Ennis Ray Lynch, Jr.26-Sep-09 7:08 
GeneralRe: DateTime of 24 hours former ? Pin
Richard MacCutchan26-Sep-09 21:49
mveRichard MacCutchan26-Sep-09 21:49 
GeneralRe: DateTime of 24 hours former ? Pin
Ennis Ray Lynch, Jr.27-Sep-09 9:34
Ennis Ray Lynch, Jr.27-Sep-09 9:34 
GeneralRe: DateTime of 24 hours former ? Pin
Richard MacCutchan27-Sep-09 12:31
mveRichard MacCutchan27-Sep-09 12:31 
Ennis Ray Lynch, Jr. wrote:
A correctly implemented DateTime class should require subtracting 25 hours on the switchover date or 23 depending on the Calender. Which is why one should subtract days and not hours.


I wish I had a dollar for every time I've been through this argument. The clocks on computers use UTC (Universal Co-ordinated Time) based on what was Greenwich Mean Time, but is now agreed by one of the UN bodies. For argument's sake it is as near to GMT as makes no difference. When you want to display the time then the library routines make an adjustment based on the local timezone and the rules for daylight saving time appropriate to that timezone. However all DateTime calculations are based on UTC so there are never any discrepancies such as you imagine; every day is 24 hours long, whatever the time of year. Only in this way can date and time calculations work correctly.
GeneralRe: DateTime of 24 hours former ? Pin
Ennis Ray Lynch, Jr.27-Sep-09 14:05
Ennis Ray Lynch, Jr.27-Sep-09 14:05 
GeneralRe: DateTime of 24 hours former ? Pin
Richard MacCutchan27-Sep-09 21:35
mveRichard MacCutchan27-Sep-09 21:35 
GeneralRe: DateTime of 24 hours former ? Pin
dan!sh 26-Sep-09 8:04
professional dan!sh 26-Sep-09 8:04 
GeneralRe: DateTime of 24 hours former ? Pin
Luc Pattyn26-Sep-09 9:58
sitebuilderLuc Pattyn26-Sep-09 9:58 
QuestionBitmaps Pin
terradtc26-Sep-09 5:27
terradtc26-Sep-09 5:27 
AnswerRe: Bitmaps Pin
Luc Pattyn26-Sep-09 6:34
sitebuilderLuc Pattyn26-Sep-09 6:34 
AnswerRe: Bitmaps Pin
Alan Balkany28-Sep-09 4:53
Alan Balkany28-Sep-09 4:53 
QuestionCapture stream on in file 'PCL' Pin
abbd26-Sep-09 3:56
abbd26-Sep-09 3:56 
Questionaccessing god damn controls on other forms Pin
teknolog12326-Sep-09 1:47
teknolog12326-Sep-09 1:47 
AnswerRe: accessing god damn controls on other forms Pin
harold aptroot26-Sep-09 1:55
harold aptroot26-Sep-09 1:55 
GeneralRe: accessing god damn controls on other forms Pin
teknolog12326-Sep-09 2:01
teknolog12326-Sep-09 2:01 
GeneralRe: accessing god damn controls on other forms Pin
harold aptroot26-Sep-09 2:19
harold aptroot26-Sep-09 2:19 
AnswerRe: accessing god damn controls on other forms Pin
OriginalGriff26-Sep-09 2:10
mveOriginalGriff26-Sep-09 2:10 
GeneralRe: accessing god damn controls on other forms Pin
teknolog12326-Sep-09 2:20
teknolog12326-Sep-09 2:20 
GeneralRe: accessing god damn controls on other forms Pin
OriginalGriff26-Sep-09 2:23
mveOriginalGriff26-Sep-09 2:23 
AnswerRe: accessing god damn controls on other forms Pin
Alan N26-Sep-09 2:25
Alan N26-Sep-09 2:25 
GeneralRe: accessing god damn controls on other forms Pin
teknolog12326-Sep-09 2:41
teknolog12326-Sep-09 2:41 

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.