lightspark/lightspark — Issue #145: Fix Date implementation
Author: mgehre
Created: 2011-10-27 14:02:55+00:00
State: open

Currently, the Date implementation does not work correctly
and exhibits multiple memory leaks.
The later is due to the fact the glib date objects are immutable and new objects are created
if one wants to change a single parameter.
It seems questionable to me if the glib date implementation is suitable to implement
this in a clean manner.

An alternative would be the boost.Date_time, which provides mutable date objects and
native nanosecond resolution (as required by AS3). (See http://www.boost.org/doc/libs/1_47_0/doc/html/date_time.html)
It provides direct accessors ('hours()', 'minutes()' etc), local to posix conversion, etc. Seems to have everything we need,
and is only one header, so it can be included in our source tree.