Click here to Skip to main content
14,659,323 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: FILETIME versus time_t Pin
Nelek8-Feb-19 5:03
protectorNelek8-Feb-19 5:03 
GeneralRe: FILETIME versus time_t Pin
CPallini8-Feb-19 9:48
mveCPallini8-Feb-19 9:48 
GeneralRe: FILETIME versus time_t Pin
Jörgen Andersson7-Feb-19 21:56
professionalJörgen Andersson7-Feb-19 21:56 
GeneralRe: FILETIME versus time_t Pin
OriginalGriff7-Feb-19 22:05
mveOriginalGriff7-Feb-19 22:05 
GeneralRe: FILETIME versus time_t - BIG FACEPALM Pin
CodeWraith7-Feb-19 22:51
MemberCodeWraith7-Feb-19 22:51 
GeneralRe: FILETIME versus time_t - BIG FACEPALM Pin
jsc427-Feb-19 23:03
professionaljsc427-Feb-19 23:03 
GeneralRe: FILETIME versus time_t - BIG FACEPALM Pin
CodeWraith7-Feb-19 23:14
MemberCodeWraith7-Feb-19 23:14 
GeneralRe: FILETIME versus time_t - BIG FACEPALM Pin
musefan8-Feb-19 2:59
Membermusefan8-Feb-19 2:59 
I don't know if somebody covered this already, but you are doing a conversation and not a comparison. And because you are doing whole years (not partials) then leap years won't effect the result.

All you have to do is add/subtract 369 years. The number of days that passed by in those 369 years is irrelevant.

EDIT: In fact, you don't even do that. Just take the individual components (year, month, day, etc.) of one data type, and then apply those values to the other data type.
GeneralRe: FILETIME versus time_t - BIG FACEPALM Pin
RedDk8-Feb-19 10:23
MemberRedDk8-Feb-19 10:23 
GeneralRe: FILETIME versus time_t - BIG FACEPALM Pin
Nelek9-Feb-19 1:13
protectorNelek9-Feb-19 1:13 
GeneralMini CCCs 15 Pin
Tim Deveaux7-Feb-19 17:19
MemberTim Deveaux7-Feb-19 17:19 
GeneralRe: Mini CCCs 15 Pin
OriginalGriff7-Feb-19 19:49
mveOriginalGriff7-Feb-19 19:49 
GeneralRe: Mini CCCs 15 Pin
Tim Deveaux7-Feb-19 22:18
MemberTim Deveaux7-Feb-19 22:18 
GeneralRe: Mini CCCs 15 Pin
DRHuff8-Feb-19 4:13
MemberDRHuff8-Feb-19 4:13 
GeneralRe: Mini CCCs 15 - Done Pin
Tim Deveaux8-Feb-19 6:39
MemberTim Deveaux8-Feb-19 6:39 
GeneralRe: Mini CCCs 15 - Done Pin
DRHuff8-Feb-19 8:15
MemberDRHuff8-Feb-19 8:15 
GeneralIt’s 2019 Pin
DRHuff7-Feb-19 13:59
MemberDRHuff7-Feb-19 13:59 
GeneralRe: It’s 2019 Pin
Shuqian Ying7-Feb-19 15:30
MemberShuqian Ying7-Feb-19 15:30 
GeneralRe: It’s 2019 Pin
Dar Brett7-Feb-19 17:50
MemberDar Brett7-Feb-19 17:50 
GeneralRe: It’s 2019 Pin
CodeWraith7-Feb-19 19:50
MemberCodeWraith7-Feb-19 19:50 
GeneralRe: It’s 2019 Pin
lopatir7-Feb-19 21:02
Memberlopatir7-Feb-19 21:02 
GeneralRe: It’s 2019 Pin
digimanus7-Feb-19 21:59
Memberdigimanus7-Feb-19 21:59 
GeneralRe: It’s 2019 Pin
V.7-Feb-19 21:03
professionalV.7-Feb-19 21:03 
GeneralRe: It’s 2019 Pin
ZurdoDev8-Feb-19 1:55
mveZurdoDev8-Feb-19 1:55 
GeneralRe: It’s 2019 Pin
RedDk8-Feb-19 9:58
MemberRedDk8-Feb-19 9:58 

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.