Skip to content

Create DateUtils.getMicroseconds() #10066

@neil-marcellini

Description

@neil-marcellini

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Problem

For pattern B we have decided to return errors from PHP in an object keyed by microtime as an integer. If we want to set errors in the failureData on the JS side, we need to be able to get microsecond timestamps.

Solution

We will create a util function to get microseconds, but with millisecond precision. We will add a function DateUtils.getMicroseconds() which will return Date.now() * 1000.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions