Re: Time in format HHMMSS.D



2009/12/3 Glus Xof <gtglus gmail com>:
> Hi guys,
>
> Getting date in YYYYMMDD format, have been easy for me using
> Glib::Date::format_string(), but I don't guess how could get the time
> in HHMMSS.D format. Is it possible ?
>
> I just look it up
> http://library.gnome.org/devel/glibmm/stable/structGlib_1_1TimeVal.html
> ...
>
> Could you suggest anything ?
>
> Glus.

Try using as_iso8601() method [1] and transforming resulting string into
something you want.
as_iso8601() returns string like "2009-12-03T18:47:45.888842Z" (without
quotes, of course). More about iso 8601 is on wikipedia [2].

Krzesimir.

[1] http://library.gnome.org/devel/glibmm/stable/structGlib_1_1TimeVal.html#a1f1c57dfc0f335f99f4cd281e237f421
[2] http://en.wikipedia.org/wiki/ISO_8601


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]