Case 1 : Get Current time in Local time zone
You can fetch the current time according to the Local time zone of the server in Data Mapping by using Current-date() function in the format as shown below:
Current-date('hh:mm:ss z')
where 'z' shows the local time zone.
Case2 : Get Current time in specific Time Zone
You can fetch the current time according to the specific Time Zone in Data Mapping by using the Function "getCurrentDate( , ) " in the format as defined below:
java:MapperUtilityClass.getCurrentDate('hh:mm:ss','CET' )
here 'CET' is an example.
Note : The default time zone for function getCurrentDate( , ) is 'GMT'.
You can also, refer the below link for the list of time zone used with getCurrentDate( , ) :-
http://tutorials.jenkov.com/java-date-time/java-util-timezone.html
Link to the formats used for Date and Time:
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Comments
0 comments
Article is closed for comments.