Login  Register

Re: Re: Time in 24 hours format

Posted by Markku Laine on Oct 26, 2009; 2:20pm
URL: https://discuss.orbeon.com/Time-in-24-hours-format-tp276866p277006.html


On 26.10.2009, at 8.16, Markku Laine wrote:

Haba,


On 26.10.2009, at 2.28, Harri T. wrote:

Hi! Can Orbeon be configured to display time in 24 hours format? Maybe these values should be changed...

fgrep time orbeon/WEB-INF/resources/config/properties-xforms.xml
 <property as="xs:string"  name="oxf.xforms.format.output.*.*.time"  value="if (. castable as xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
 <property as="xs:string"  name="oxf.xforms.format.output.fr.*.time" value="if (. castable as xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01]', 'fr', (), ()) else ."/>
 <property as="xs:string"  name="oxf.xforms.format.output.time"      value="if (. castable as xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01] [ZN]', 'en', (), ()) else ."/>
 <property as="xs:string"  name="oxf.xforms.format.input.time"       value="[h]:[m]:[s] [P]"/>

... but how?

Check out the documentation about formatting at:
http://www.orbeon.com/ops/doc/reference-xforms-extensions#d30e462
http://www.orbeon.com/ops/doc/reference-xforms-extensions#xforms-default-formatting
http://www.w3.org/TR/2005/WD-xslt20-20050915/#function-format-time

The format used below prints out a date as follows: Friday January 2, 2009 17:05:54
<xforms:output ref="@created" xxforms:format="format-dateTime( xs:dateTime( . ), '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01]', 'en', (), () )" />

-Markku


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws