Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch timestamp representation to int64 usec #1332

Merged
merged 6 commits into from
Feb 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: lint issues
  • Loading branch information
alvarowolfx committed Feb 16, 2024
commit fe67d5735921d11e05b824024c06761c67b846c8
2 changes: 1 addition & 1 deletion test/bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ describe('BigQuery', () => {

it('should accept a number in microseconds', () => {
const ms = INPUT_PRECISE_DATE.valueOf(); // milliseconds
const us = (ms*1000) + INPUT_PRECISE_DATE.getMicroseconds(); // microseconds
const us = ms * 1000 + INPUT_PRECISE_DATE.getMicroseconds(); // microseconds
let timestamp = bq.timestamp(us);
assert.strictEqual(timestamp.value, EXPECTED_VALUE_MICROS);

Expand Down