Skip to content

Commit 2fe2868

Browse files
committed
ref(deprecation): Deprecate timestampWithMs
Use `timestampInSeconds` instead.
1 parent e3313ad commit 2fe2868

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/utils/src/time.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ export const dateTimestampInSeconds: () => number = dateTimestampSource.nowSecon
121121
*/
122122
export const timestampInSeconds: () => number = timestampSource.nowSeconds.bind(timestampSource);
123123

124-
// Re-exported with an old name for backwards-compatibility.
124+
/**
125+
* Re-exported with an old name for backwards-compatibility.
126+
* TODO (v8): Remove this
127+
*
128+
* @deprecated Use `timestampInSeconds` instead.
129+
*/
125130
export const timestampWithMs = timestampInSeconds;
126131

127132
/**

0 commit comments

Comments
 (0)