Go to the FreeLists Home Page Home Signup Help Login
 



Browse uae: This Month's ArchiveMain Archive PageRelated postsPrevious by DateNext by Date

[uae] Re: Clock fixes

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Wed, 28 Jul 2004 10:44:40 -0500
Hi Elmar

On Wednesday 28 July 2004 09:36 am, elmar@xxxxxxxxxxxxxxxxxx wrote:
> What about localtime_r()? It seems to be somewhat portable (At least
> Solaris and Linux have it).

All I want is the timezone offset in seconds. I don't want to have to convert 
between a struct tm time-stamp and an AmigaDOS time-stamp (in days, mins and 
ticks).

By doing localtime_r (which takes account of the timezone) and converting back 
to a time_t in seconds with gmtime (which doesn't), this effectively gives 
the local time in seconds. However, this is non-portable. Getting the 
timezone offset in seconds from the timezone global also appears to be 
non-portable (but perhaps more portable than the above-mentioned solution).

Cheers,
Rich

Other related posts:

  • [uae] Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes
  • [uae] Re: Clock fixes




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2008 Avenir Technologies, LLC.