second

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Availability

This routine is available starting with SIL Engine™ 1.0.

Syntax

second(date)

Description

Returns the seconds of the provided date: 0-59.

Parameters

Parameter name

Type

Required

Description

date

date

Yes

Specifies a Date or a DateTime expression.

Return type

number

Example

Example 1

print("Second is " + second(currentDate()));

Example 2

date varDateTime = "2011-08-17T18:30:55";
print("Second is " + second(varDateTime));

Print  Second is 55

See also