GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Jan-2004, 08:34
ktreddy ktreddy is offline
New Member
 
Join Date: Jan 2004
Posts: 1
ktreddy is on a distinguished road

time to utc timestamp conversion


How to convert time assigned with a string "1/7/2004 1:14:00 PM" to UTC format (no of seconds since 1970)which looks like 1073738469947
  #2  
Old 10-Jan-2004, 14:55
cs2 cs2 is offline
Member
 
Join Date: May 2003
Location: California
Posts: 107
cs2 will become famous soon enough
Quote:
Originally Posted by ktreddy
How to convert time assigned with a string "1/7/2004 1:14:00 PM" to UTC format
I don't have an answer for you, but wanted to point out a terminology error.

# of seconds since 1970 is Unix timestamp, not UTC. UTC is a synonym for Greenwich Mean Time (GMT).
__________________
The Whole Internet, LLC
Visit our Homepage, -or-
use our online CSS Editor
  #3  
Old 13-Jan-2004, 04:42
Garth Farley Garth Farley is offline
Awaiting Email Confirmation
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
There's no easy way to do this, you've all the arithmetic to do yourself. You'll have to parse the string for the various numbers, and then do the math, taking care of leap years and such.

A guy has tried this here: www.listserv.shafik.org but no guarantees.

Any good?
GF
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Size and maybe download time BobbyDouglas MySQL / PHP Forum 5 08-Nov-2003 00:18
ambiguity in time field zuzupus MySQL / PHP Forum 9 28-Jul-2003 08:40
time Problem zuzupus MySQL / PHP Forum 9 24-Jul-2003 07:02
The Google update this time... JdS Search Engine Optimization Forum 5 04-Jun-2003 15:25
Sydog's DVD to Divx Conversion Guide asanthadenz Computer Software Forum - Windows 1 14-Mar-2003 14:08

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 07:16.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.