@bash-app/bash-common 29.48.0 → 29.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "29.48.0",
3
+ "version": "29.48.1",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -232,3 +232,7 @@ export function localDateToUTC(date: Date): Date {
232
232
 
233
233
  return newDate;
234
234
  }
235
+
236
+ export function timestampMinutseFromNow(minutes: number): number {
237
+ return Math.floor((new Date().getTime() / 1000) + (minutes * 60));
238
+ }