]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/core-utils/common/date.ts
Add ability to set start/end date to timeserie
[github/Chocobozzz/PeerTube.git] / shared / core-utils / common / date.ts
index 3e4a3c08c7e03c366997588431169dd4a719bf37..f0684ff86ec29ee271bcd6374be85863a7baa9ed 100644 (file)
@@ -43,6 +43,8 @@ function isLastWeek (d: Date) {
   return getDaysDifferences(now, d) <= 7
 }
 
+// ---------------------------------------------------------------------------
+
 function timeToInt (time: number | string) {
   if (!time) return 0
   if (typeof time === 'number') return time