Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Forms wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...
 Forms Experience Builder 8 documentation

 Webform Server 8 documentation

 Forms Designer 8 documentation
 Extensible Forms Description Language XFDL 8.0

 Forms API 8 - Dev Guide

 Form Services Platform 8 documentation

 Forms Viewer 8 documentation

 Forms 8 and FileNet integration documentation

 Forms API 4 - Dev Guide
 Forms with Workflow 4
 Forms 4 and Mashup Center integration documentation

Tag Cloud

  • 3.0
  • 3.5
  • 3.5.1
  • 4.0
  • 4.0.0.1
  • 4.0.0.2
  • 8.0
  • accessibility
  • actions
  • API
  • app dev
  • button item
  • buttons
  • C
  • certificates
  • COM
  • compute
  • computes
  • configuring
  • creating
  • defining
  • demonstration
  • demos
  • deployment
  • deployment scenario
  • design
  • design tips
  • Designer
  • designing
  • dev guide
  • develop
  • developing
  • differences between Webform Server and Viewer
  • education
  • Enablement
  • enterprise
  • error messages
  • events
  • field
  • field item
  • FileNet
  • filtering
  • form
  • formatting
  • forms
  • forms experience builder
  • Forms Services Platform
  • FSP
  • functions
  • getting_started
  • Help
  • IBM Forms
  • images
  • installing
  • integrating
  • integrating, 4.0.0.1
  • items
  • JAVA
  • JavaScript API
  • language
  • languages
  • layout
  • lf_intro
  • math functions
  • methods
  • new_user
  • options
  • P8
  • performance
  • pipelines
  • pipes
  • printing
  • programming
  • Properties
  • samples
  • services
  • signature item
  • signatures
  • spec
  • string functions
  • strings
  • StrJava
  • submissions
  • table
  • tables
  • text
  • training
  • translation
  • Turbo
  • turbo_media
  • tutorials
  • utility functions
  • video
  • Viewer
  • viewer package
  • Webform Server
  • WebformServer
  • XFDL
  • XForms
  • XPath
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Extensible Forms Description Language XFDL 8.0 > adjust-dateTime-to-timezone
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

adjust-dateTime-to-timezone 

expanded Abstract
collapsed Abstract
Returns the xsd:dateTime adjusted to contain the local time zone information.



Returns the xsd:dateTime adjusted to contain the local time zone information.

Syntax

adjust-dateTime-to-timezone(dateTime) 


Table 1. adjust-dateTime-to-timezone parameter
ParameterTypeDescription
dateTimestringA legal, lexical XML schema dateTime


Returns

Returns an adjusted representation of the given dateTime adjusted to contain local time zone. If the string contains no time zone, the result of the string, with the local time zone is appended. If the dateTime is an empty string, or not a legal xsd:dateTime, an empty string is returned.

Example

The example below calculates the local dateTime adjusted for daylight savings. The local dateTime in the label is "2011-09-01T16:00:01-07:00".
<xforms:model>
	<xforms:instance xmlns="" id="formData">
		<root>
		...
			<utcDT>2011-09-01T23:00:01Z</utcDT><!-- UTC dateTime -->
		...
			<localDT>2011-09-01T23:00:01Z</localDT><!-- local dateTime with the timezone (accounting for daylight saving correction) -->
		...		...
		</root>
	</xforms:instance>
	<xforms:bind nodeset="utcDT | localDT" type="xforms:dataTime"/>
	<xforms:bind nodeset="localDT" calculate="adjust-dateTime-to-timezone(../utcDT)"/>
</xforms:model>
 
...
 
<label sid="l2">
	<xforms:output ref="localDT">
		 <xforms:label>Local dateTime = </xforms:label>
	</xforms:output>
	...
</label>


Parent topic:
XForms dateTime functions

expanded Article information
collapsed Article information
Category:
Extensible Forms Description Language XFDL 8.0, Product Documentation,
Tags:
adjust-dateTime-to-timezone function, date functions, XForms functions, XFDL, 8.0, spec

This Version: Version 1 May 2, 2012 2:28:17 PM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) May 2, 2012 2:28:17 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use