webmcp

changeset 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 6b435d3c0b14
children db7ad8e4f78b
files framework/env/format/time.lua framework/env/format/timestamp.lua
line diff
     1.1 --- a/framework/env/format/time.lua	Sun Nov 04 17:14:49 2012 +0100
     1.2 +++ b/framework/env/format/time.lua	Sun Nov 04 18:46:29 2012 +0100
     1.3 @@ -1,9 +1,10 @@
     1.4  --[[--
     1.5 -text =                 -- text with the value formatted as a time, according to the locale settings
     1.6 +text =                           -- text with the value formatted as a time, according to the locale settings
     1.7  format.time(
     1.8 -  value,               -- a time, a timestamp or nil
     1.9 +  value,                         -- a time, 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  
     2.1 --- a/framework/env/format/timestamp.lua	Sun Nov 04 17:14:49 2012 +0100
     2.2 +++ b/framework/env/format/timestamp.lua	Sun Nov 04 18:46:29 2012 +0100
     2.3 @@ -1,9 +1,10 @@
     2.4  --[[--
     2.5 -text =                 -- text with the given timestamp value formatted according to the locale settings
     2.6 +text =                           -- text with the given timestamp value formatted according to the locale settings
     2.7  format.timestamp(
     2.8 -  value,               -- a timestamp or nil
     2.9 +  value,                         -- a timestamp or nil
    2.10    {
    2.11 -    nil_as = nil_text  -- text to be returned for a nil value
    2.12 +    nil_as       = nil_text,     -- text to be returned for a nil value
    2.13 +    hide_seconds = hide_seconds  -- set to TRUE to hide seconds
    2.14    }
    2.15  )
    2.16  

Impressum / About Us