Skip to content

Commit

Permalink
update(page): update home/date
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Dec 16, 2023
1 parent 80ecff0 commit d1524ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/home/date.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ console.log(date.string("<Now time: >Y-M-D H:m:s.S a"));
// More functions
console.log(date.parse("Y-M-D h:m:s", "2022-10-21 19:20:46")); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.parseDate("Y-M-D h:m:s", new Date(...))); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.parseTimestamp("Y-M-D h:m:s", 1666442446)); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.parseTimestamp("Y-M-D h:m:s", 1666351246)); // { date, format, dateString, timestamp, utcDateString, utcTimestamp }
console.log(date.reformat("2022-10-21 19:20:46", "Y-M-D h:m:s", "h:m:s Y-M-D")); // 19:20:46 2022-10-21
console.log(date.date("Y-M-D h:m:s"), date.format); // 2021-10-21 19:20:46 Y-M-D h:m:s`
console.log(date.date("Y-M-D h:m:s", "2022-10-21 19:20:46")); // Date { ... }`
}
},
mounted() {
Expand Down

0 comments on commit d1524ce

Please sign in to comment.