[erlang-bugs] leap-second-enabled FreeBSD doesn't work right with R12B4 erts/emulator/beam/erl_time_sup.c; correction patch included

Matthew Dempsky <>
Sun Sep 14 06:00:43 CEST 2008

On Sat, Sep 13, 2008 at 8:12 PM, Kenji Rikitake <> wrote:
> mktime() certainly is, but timegm() isn't, AFAIK.

My mistake.  I confused the local-vs-UTC time functions.

time2posix(3) and posix2time(3) come from Olson's tz library, which
according to Wikipedia[1], is pretty widely used, so they seem like
they should be reasonably portable.  Anywhere that doesn't have them
probably isn't leap second aware anyways.  They're also present in
FreeBSD, NetBSD, and OpenBSD's cvs trees from over 10 years ago, so
they're hardly recent additions either.

[1] http://en.wikipedia.org/wiki/Zoneinfo#Use_in_software_systems

More information about the erlang-bugs mailing list