Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Caleb,
If you know your offset from GMT, use either =A1+TIME(H,0,0) or =A1-TIME(H,0,0) where A1 is the time and H is the absolute value of the offset in hours from local time to GMT. Use the addition version of the formula if your local time is earlier than GMT (you are in western longitude) or use the subtraction formula if GMT is earlier than your local time (you are in eastern longitude). For an in depth discussion of GMT and Excel, including example formulas and VBA code, see http://www.cpearson.com/excel/LocalAndGMTTimes.htm . Also see http://www.cpearson.com/excel/FileTimes.htm for a discussion of the times used by FILETIME, SYSTEMTIME and local times and conversion between them. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "Caleb Runnels" wrote in message ... I'm trying to figure out a way to convert the system time to GMT for use in a userform. Any suggestions would be greatly appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy System Time | Excel Discussion (Misc queries) | |||
The 1904 Time System | Excel Programming | |||
system time and date | Excel Programming | |||
what if system time is changed? | Excel Programming | |||
Inserting the system time | Excel Programming |