getMinutes
This topic describes the syntax and usage of the getMinutes function in Zoho Creator .
Description
The getMinutes function returns the minutes of a time value. The minute is given as an integer, ranging from 0 to 59
Syntax
(or)
// this format is supported only in the free flow scripting mode of Script builder.
The getMinutes function syntax has the following arguments.
date-time - Required. Required. The time that contains the minute you want to find. The time specified can be a date-time field, the "now" variable which represents the current time, or results of other date-time functions, for example, date.totime()
Example
minute = now.getMinutes();
//Here, the form field named "Date_Time" is used as input to the minute function. This field is a date-time field.
minute = input.Date_Time.getMinutes();
// the input is the result of a string converted to time, using the toTime() function.
datetime = "04-Jul-2013 16:01:46";
time = datetime.toTime();
minute = time.getMinutes();
minute = minute(now);
//Here, the form field named "Date_Time" is used as input to the minute function. This field is a date-time field.
minute = minute(input.Date_Time);
// the input is the result of a string converted to time, using the toTime() function.
datetime = "04-Jul-2013 16:01:46";
time = datetime.toTime();
minute = minute(time);
