mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
code refactor
This commit is contained in:
+6
-2
@@ -143,8 +143,8 @@ export function getCurrentUnixTime() {
|
||||
return moment().unix();
|
||||
}
|
||||
|
||||
export function getCurrentDateTime() {
|
||||
return moment();
|
||||
export function getCurrentYear() {
|
||||
return moment().year();
|
||||
}
|
||||
|
||||
export function parseDateFromUnixTime(unixTime, utcOffset, currentUtcOffset) {
|
||||
@@ -167,6 +167,10 @@ export function formatTime(dateTime, format) {
|
||||
return moment(dateTime).format(format);
|
||||
}
|
||||
|
||||
export function formatCurrentTime(format) {
|
||||
return moment().format(format);
|
||||
}
|
||||
|
||||
export function getUnixTime(date) {
|
||||
return moment(date).unix();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user