Creator Help

getSeconds

This topic describes the syntax and usage of the getSeconds function in Zoho Creator .

Description

The getSeconds function returns the seconds from a given date-time. 

Syntax

<date-time>.getSeconds()

(or)

second(date-time)

// this format is supported only in the free flow scripting mode of Script builder.

The getSeconds function syntax has the following arguments.

date-time - Required. The date-time from which you want to fetch the second value. Date-Time should be a date-time field type or as results of toTime() function. 

Example

datetime = "Aug 21, 2013 13:00:10";
time = datetime.toTime();

meetingTime=time.getSeconds()       // returns 10
    

meetingTime=input.Date_Time.getSeconds();  // here, input.Date_Time refers to the date-time field in the form.

datetime = "Aug 21, 2013 13:00:10";
time = datetime.toTime();

meetingTime=second(time)       // returns 10
    

meetingTime=second(input.Date_Time);  // here, input.Date_Time refers to the date-time field in the form.

Top