Time in 24 hours format

5 messages Options
Embed this post
Permalink
Harri T.

Time in 24 hours format

Reply Threaded More More options
Print post
Permalink
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?

-Harri




--
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
Markku Laine

Re: Time in 24 hours format

Reply Threaded More More options
Print post
Permalink
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

Regards


-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
Markku Laine

Re: Re: Time in 24 hours format

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

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
Harri T.

Re: Time in 24 hours format

Reply Threaded More More options
Print post
Permalink
In reply to this post by Markku Laine
On 26.10.2009 08:16 Markku Laine wrote:
> 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

According to this documentation the default time format for English use

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 ."/>

should display hours in 24 h format, but currently my form builder built
forms have them in 12 h format.

-Harri


--
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
Alessandro Vernet-2

Re: Re: Time in 24 hours format

Reply Threaded More More options
Print post
Permalink
Harri,

On Thu, Oct 29, 2009 at 2:27 PM, Harri T. <[hidden email]> wrote:

> According to this documentation the default time format for English use
>
> 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 ."/>
>
> should display hours in 24 h format, but currently my form builder built
> forms have them in 12 h format.
Where specifically in Form Builder would you like to use the 24h format?

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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