I have couple widgets of type TGNumberEntry where a user can enter a date (m/d/y) in one, and a time (hh:mm:ss) in the other… I was wondering if TGNumberEntry had a method that allows me to get the unix time (seconds from 1970)…
I pretty much have:
entryDate = new TGNumberEntry(parent, .005, 9, kENTRY1, TGNumberFormat::kNESMDayYear, TGNumberFormat::kNELNoLimits);
entryTime = new TGNumberEntry(parent, .005, 9, kENTRY1, TGNumberFormat::kNESHourMinSec, TGNumberFormat::kNELNoLimits);
So then I can do entryDate->GetNumber() or entryTime->GetNumber(), but that returns some sort of integer that I don’t quite understand. What does it return, and how can I convert the combined date and time into unix time?
Thank you very much.