Click here to Skip to main content
15,888,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 10:40
David Crow17-Sep-09 10:40 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 10:45
dipuks17-Sep-09 10:45 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 10:52
dipuks17-Sep-09 10:52 
QuestionRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 10:59
David Crow17-Sep-09 10:59 
AnswerRe: Convert Julian date/time to Normal date/time? Pin
dipuks17-Sep-09 11:05
dipuks17-Sep-09 11:05 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
David Crow17-Sep-09 16:35
David Crow17-Sep-09 16:35 
GeneralRe: Convert Julian date/time to Normal date/time? Pin
vasu_sri17-Sep-09 19:35
vasu_sri17-Sep-09 19:35 
QuestionRe: Convert Julian date/time to Normal date/time? Pin
David Crow18-Sep-09 2:41
David Crow18-Sep-09 2:41 
vasu_sri wrote:
what is julian time?


Technically, it does not exist. Time, in terms of hours and minutes, is the fractional part of a day. For example, if your Julian date was 45.5, and the epoch was January 1st of the current year, that would be 12:00 on Feb 14th.

vasu_sri wrote:
szString.Format(_T("%02d-%2d-%02d\t%02d:%02d:%02d\tPHYSICALDRIVE %s\t %s\t%s\t\t%s\n"), stTime.wDay, stTime.wMonth,stTime.wYear, stTime.wHour, stTime.wMinute, stTime.wSecond);


There are at least two things wrong with this: 1) stTime.wYear is a 4-digit year yet you are using %02d to print it; 2) You have 10 % characters in the format string yet are only passing 6 arguments. Since more items will be popped from the stack than were actually pushed onto it, an error is imminent.

That aside, where is the Julian date that you are wanting to convert?

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


Questioncopy/swap vector between threads... Pin
RobJones17-Sep-09 9:51
RobJones17-Sep-09 9:51 
AnswerRe: copy/swap vector between threads... Pin
Stuart Dootson17-Sep-09 10:13
professionalStuart Dootson17-Sep-09 10:13 
GeneralRe: copy/swap vector between threads... Pin
RobJones17-Sep-09 10:30
RobJones17-Sep-09 10:30 
GeneralRe: copy/swap vector between threads... Pin
CPallini17-Sep-09 10:38
mveCPallini17-Sep-09 10:38 
GeneralRe: copy/swap vector between threads... Pin
RobJones17-Sep-09 10:42
RobJones17-Sep-09 10:42 
GeneralRe: copy/swap vector between threads... Pin
Stuart Dootson17-Sep-09 10:44
professionalStuart Dootson17-Sep-09 10:44 
QuestionInconsistent results when using MFC printing with a CDC and CFormView with OnDraw implemented Pin
Sternocera17-Sep-09 9:49
Sternocera17-Sep-09 9:49 
QuestionTemplated Constructor Pin
Leslie Sanford17-Sep-09 7:31
Leslie Sanford17-Sep-09 7:31 
AnswerRe: Templated Constructor Pin
Code-o-mat17-Sep-09 7:59
Code-o-mat17-Sep-09 7:59 
GeneralRe: Templated Constructor Pin
Leslie Sanford17-Sep-09 8:04
Leslie Sanford17-Sep-09 8:04 
GeneralRe: Templated Constructor Pin
Code-o-mat17-Sep-09 8:08
Code-o-mat17-Sep-09 8:08 
AnswerRe: Templated Constructor Pin
CPallini17-Sep-09 8:09
mveCPallini17-Sep-09 8:09 
QuestionObjects in Array loops, need help Pin
Sivyo17-Sep-09 3:55
Sivyo17-Sep-09 3:55 
AnswerRe: Objects in Array loops, need help Pin
David Crow17-Sep-09 4:16
David Crow17-Sep-09 4:16 
GeneralRe: Objects in Array loops, need help Pin
Sivyo17-Sep-09 4:42
Sivyo17-Sep-09 4:42 
AnswerRe: Objects in Array loops, need help Pin
Nuri Ismail17-Sep-09 4:18
Nuri Ismail17-Sep-09 4:18 
AnswerRe: Objects in Array loops, need help Pin
Cedric Moonen17-Sep-09 4:19
Cedric Moonen17-Sep-09 4:19 

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.