getTimeBefore
Get a timestamp a fixed duration before another time in a page expression.
Page editor expression. Part of the page editor expression reference.
Returns a timestamp a fixed duration before another time.
getTimeBefore(duration: string, time: number): number;
Parameters
duration— how far back, e.g."30m","1h","7d". Units:s,m,h,d,w.time— the Unix timestamp, in seconds, to subtract from.
Return value
The earlier timestamp, in seconds.