@dbos-inc/dbos-datetime
TypeScript icon, indicating that this package has built-in type declarations

2.10.24 • Public • Published

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 Date.now().

Next Steps

Readme

Keywords

none

Package Sidebar

Install

npm i @dbos-inc/dbos-datetime

Weekly Downloads

17

Version

2.10.24

License

MIT

Unpacked Size

206 kB

Total Files

9

Last publish

Collaborators

  • qianli.cs
  • kraftp
  • chuck-dbos
  • caspiana1