Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #407
| From | Josef Moellers <josef.moellers@ts.fujitsu.com> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | Re: time conversion |
| Date | 2012-01-27 14:20 +0100 |
| Organization | Fujitsu Technology Solutions |
| Message-ID | <jfu8b9$7u2$2@nntp.ts.fujitsu.com> (permalink) |
| References | <jfsjn2$4hm$1@dont-email.me> <87zkda131v.fsf@araminta.anjou.terraraq.org.uk> |
Am 27.1.2012 schrub Richard Kettlewell: > Bill M <wpmccormick@just_about_everywhere.com> writes: >> What is the easiest way to convert a time value that is the number >> of microseconds that have elapsed since 0000 hours 1 January 1972 into >> the unixepoch (the number of seconds since 0000 hours 1 January 1970). > > Divide by one million and subtract 63072000? > > You'll need to correct for leap seconds if your input value uses > different rules from time_t. In that case, I'd suggest using mktime to convert 0:00:00 1/1/72 to time_t and subtract^Wadd *that* value. Josef -- These are my personal views and not those of Fujitsu Technology Solutions! Josef Möllers (Pinguinpfleger bei FTS) If failure had no penalty success would not be a prize (T. Pratchett) Company Details: http://de.ts.fujitsu.com/imprint.html
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
time conversion Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-26 16:22 -0600
Re: time conversion Richard Kettlewell <rjk@greenend.org.uk> - 2012-01-26 23:01 +0000
Re: time conversion Richard Kettlewell <rjk@greenend.org.uk> - 2012-01-27 09:18 +0000
Re: time conversion Josef Moellers <josef.moellers@ts.fujitsu.com> - 2012-01-27 14:20 +0100
Re: time conversion Richard Kettlewell <rjk@greenend.org.uk> - 2012-01-27 13:50 +0000
Re: time conversion Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-27 08:19 -0600
Re: time conversion Jasen Betts <jasen@xnet.co.nz> - 2012-01-28 21:15 +0000
Re: time conversion Bill M <wpmccormick@just_about_everywhere.com> - 2012-01-31 14:34 -0600
csiph-web