Re: [MarkLogic Dev General] How To Reflect Specific Timezone in Formatted Date Time?

2017-10-02 Thread Geert Josten
Hi Eliot, That is not covered by the XPath standard, from the looks of it: https://www.w3.org/TR/xslt20/#date-picture-string I¹m afraid you will have to glue the timezone name to the date yourself. Consider doing a reverse lookup in this map:map: https://github.com/grtjn/ml-datetime/blob/master/d

[MarkLogic Dev General] How To Reflect Specific Timezone in Formatted Date Time?

2017-09-29 Thread Eliot Kimber
I’m trying to produce a formatted date that reflects a specific time zone name, rather than e.g., “GMT-07:00” format-dateTime($time, "[Y0001]-[M01]-[D01] at [H01]:[m01]:[s01] [ZN]") where $time = 2017-09-29T08:01:54.216992-07:00 Returns 2017-09-29 at 08:01:54 GMT-07:00 Running on server in pa