Skip to content
QiTASC.com / Steps and Compound Steps /
Set Date/Time Format Steps
/ .. /
Set Date/Time Format Steps










Set Time Format Steps

The Set Time Format Step allocates a format to a variable holding a time expression.

Syntax

1
set <time Variable> with format <format String> to time <timeExpression String> (in <locale Locale>)

Parameters

  • time - The variable that holds the time expression

  • format - The DateTime format in SimpleDateFormat

  • timeExpression - The time to set, using String to Time. For example "now" or "+5 minutes"

  • locale - The locale that will be used. For example, en_US, de_DE, fr_FR, en_GB

Example

1
2
And set myTime1 with format "EEE HH:MM" to time "now"
And set myTime2 with format "EEE HH:MM" to time "+5 minutes" in de_DE

Set Date Into Context

The set time format Step can also be used to set a date into context.

Syntax

1
set <time Variable> as date to time <format String>

Parameters

  • time - The variable that holds the time expression

  • format - The DateTime format in SimpleDateFormat.)

Example

1
Given set myTime as date to time "2013/10/17 11:26:17"

This Step is eligible for:

  • Timed