Emmanuele Bassi
5e65ed4e44
datetime: Fix leap year check
...
Remove a FIXME and an approximation when computing the seconds from
the Unix epoch.
2010-08-25 13:42:48 +01:00
Emmanuele Bassi
2952e908e4
datetime: Fix coding style
2010-08-25 12:24:54 +01:00
Emmanuele Bassi
0a59ab6e85
datetime: Use %Z for the timezone name
...
We should try and follow strftime(3) for the format control characters
as much as possible.
2010-08-25 12:14:04 +01:00
Emmanuele Bassi
b4c0b958af
datetime: Fix the format documentation
...
The %x format is for the preferred date, and the %X format is for the
preferred time.
2010-08-25 12:09:16 +01:00
Emmanuele Bassi
9a39b1d705
datetime: Clean up macros and unused variables
...
The most complex macros should be converted to inlined functions,
instead, to guarantee some type safety.
2010-08-25 12:06:47 +01:00
Emmanuele Bassi
0f87f09397
datetime: Remove the translation marker for a warning message
2010-08-25 00:27:49 +01:00
Thiago Santos
e1f13ee9ed
Add GDateTime to GLib
...
GDateTime is an opaque data type containing a date and time
representation. It's immutable once created and reference
counted.
https://bugzilla.gnome.org/show_bug.cgi?id=50076
Based on the code by: Christian Hergert <chris@dronelabs.com>
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-08-24 23:41:21 +01:00