webmcp
diff framework/env/format/timestamp.lua @ 108:08c107cc4fce
Documentation of "hide_seconds" flag for format.time and format.timestamp
author | jbe |
---|---|
date | Sun Nov 04 18:46:29 2012 +0100 (2012-11-04) |
parents | 9fdfb27f8e67 |
children | 6dec66f8d48e |
line diff
1.1 --- a/framework/env/format/timestamp.lua Sun Nov 04 17:14:49 2012 +0100 1.2 +++ b/framework/env/format/timestamp.lua Sun Nov 04 18:46:29 2012 +0100 1.3 @@ -1,9 +1,10 @@ 1.4 --[[-- 1.5 -text = -- text with the given timestamp value formatted according to the locale settings 1.6 +text = -- text with the given timestamp value formatted according to the locale settings 1.7 format.timestamp( 1.8 - value, -- a timestamp or nil 1.9 + value, -- a timestamp or nil 1.10 { 1.11 - nil_as = nil_text -- text to be returned for a nil value 1.12 + nil_as = nil_text, -- text to be returned for a nil value 1.13 + hide_seconds = hide_seconds -- set to TRUE to hide seconds 1.14 } 1.15 ) 1.16