Merge pull request #2902 from xordspar0/patch-1
Add documentation about textclock format
This commit is contained in:
commit
3340a7dce9
|
@ -28,9 +28,11 @@ if source_date_epoch and os.getenv("SOURCE_DIRECTORY") then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Set the clock's format
|
--- Set the clock's format.
|
||||||
|
-- For information about the format specifiers, see
|
||||||
|
-- [the GLib docs](https://developer.gnome.org/glib/stable/glib-GDateTime.html#g-date-time-format).
|
||||||
-- @property format
|
-- @property format
|
||||||
-- @tparam string format The new time format. This can contain pango markup
|
-- @tparam string format The new time format. This can contain pango markup.
|
||||||
|
|
||||||
function textclock:set_format(format)
|
function textclock:set_format(format)
|
||||||
self._private.format = format
|
self._private.format = format
|
||||||
|
|
Loading…
Reference in New Issue