auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
return new Date()
An ISO 8601 string representing the time you'd like to convert to your target timezone. If this timestamp doesn't have a timezone component, it's assumed to be in UTC.
The IANA timezone name, e.g. America/Los_Angeles
. See the full list here
async
params => {
}
const moment = require("moment-timezone")
return moment.tz(params.time, params.timezone).format();
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const dateFormat = require("dateformat");
const meeting_date = steps.get_time_in_specific_timezone.$return_value;
this.date = dateFormat(meeting_date, "dddd, mmmm dS, yyyy, HH:MM:ss p");