Skip to content

dbos-datetime 1.31.33-preview

Install from the command line:
Learn more about npm packages
$ npm install @dbos-inc/dbos-datetime@1.31.33-preview
Install via package.json:
"@dbos-inc/dbos-datetime": "1.31.33-preview"

About this version

DBOS Date/Time Steps

This is a DBOS step for getting the current date / time.

The reason that date retrieval should be wrapped in a @DBOS.step is so that replayed workflows get the recorded value and therefore have the same behavior as the original run.

Available Functions

DBOSDateTime.getCurrentDate()

This function returns a Date object representing the current clock time.

DBOSDateTime.getCurrentTime()

This function returns a number of milliseconds since January 1, 1970, UTC, in the same manner as new Date().getTime().

Next Steps

Details


Assets

  • dbos-datetime-1.31.33-preview.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0