get_default_time_format


Description:

public string get_default_time_format (bool is_12h = false, bool with_second = false)

Gets a default translated time format. The function constructs a new string interpreting the is_12h and with_second parameters so that it can be used with formatting functions like GLib.DateTime.format.

The returned string is formatted and translated. This function is mostly used to display the time in various user interfaces like the time displayed in the top panel.

Parameters:

is_12h

if the returned string should be formatted in 12h format

with_second

if the returned string should include seconds

Returns:

the formatted and located time string.


Namespace: Granite.DateTime
Package: granite