Constructs a new CronParseTask.
Optional
properties: ICronParseTaskProperties to set
Use the TaskRunner's clock or the on-chain SYSCLOCK.
The timestamp offset to calculate the next run.
The cron pattern to parse.
Static
createCreates a new CronParseTask instance using the specified properties.
Optional
properties: ICronParseTaskProperties to set
CronParseTask instance
Static
decodeDecodes a CronParseTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
CronParseTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a CronParseTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
CronParseTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified CronParseTask message. Does not implicitly verify messages.
CronParseTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified CronParseTask message, length delimited. Does not implicitly verify messages.
CronParseTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a CronParseTask message from a plain object. Also converts values to their respective internal types.
Plain object
CronParseTask
Static
getStatic
toCreates a plain object from a CronParseTask message. Also converts values to other types if specified.
CronParseTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Return a timestamp from a crontab instruction.
Input: None
Returns: A timestamp
Example: Return the unix timestamp for the on-chain SYSCLOCK
Example: Return the unix timestamp for next friday at 5pm UTC