# HG changeset patch # User jbe # Date 1352051189 -3600 # Node ID 08c107cc4fce82f14c4f324797cad31da418acd0 # Parent 6b435d3c0b14cfbea55a156d0d4d059a7c6bf129 Documentation of "hide_seconds" flag for format.time and format.timestamp diff -r 6b435d3c0b14 -r 08c107cc4fce framework/env/format/time.lua --- a/framework/env/format/time.lua Sun Nov 04 17:14:49 2012 +0100 +++ b/framework/env/format/time.lua Sun Nov 04 18:46:29 2012 +0100 @@ -1,9 +1,10 @@ --[[-- -text = -- text with the value formatted as a time, according to the locale settings +text = -- text with the value formatted as a time, according to the locale settings format.time( - value, -- a time, a timestamp or nil + value, -- a time, a timestamp or nil { - nil_as = nil_text -- text to be returned for a nil value + nil_as = nil_text, -- text to be returned for a nil value + hide_seconds = hide_seconds -- set to TRUE to hide seconds } ) diff -r 6b435d3c0b14 -r 08c107cc4fce framework/env/format/timestamp.lua --- a/framework/env/format/timestamp.lua Sun Nov 04 17:14:49 2012 +0100 +++ b/framework/env/format/timestamp.lua Sun Nov 04 18:46:29 2012 +0100 @@ -1,9 +1,10 @@ --[[-- -text = -- text with the given timestamp value formatted according to the locale settings +text = -- text with the given timestamp value formatted according to the locale settings format.timestamp( - value, -- a timestamp or nil + value, -- a timestamp or nil { - nil_as = nil_text -- text to be returned for a nil value + nil_as = nil_text, -- text to be returned for a nil value + hide_seconds = hide_seconds -- set to TRUE to hide seconds } )