diff --git a/src/Timepiece.ts b/src/Timepiece.ts index 78ff7b9..206bf35 100644 --- a/src/Timepiece.ts +++ b/src/Timepiece.ts @@ -44,11 +44,11 @@ export class Timepiece extends LitElement { const minutes = date.getUTCMinutes(); const seconds = date.getUTCSeconds(); + let dayOfYear = Math.round((this.dayOfTheYear(date)/this.totalDaysInTheYear(date))*10000)/100; let beats = (hours * 3600 + 60 * minutes + seconds) / 86.4; - beats = Math.round(beats * 100) / 100; - this.setData(`${date.getFullYear()}.${((this.dayOfTheYear(date)/this.totalDaysInTheYear(date))*100).toFixed(0)}@${beats.toFixed(2)}`); + this.setData(`${date.getFullYear()}#${dayOfYear}@${beats.toFixed(2)}`); setTimeout(() => this.reloadTime(), 100); }