0.1.0 • Published 3 years ago
@sqrtthree/beijing-time v0.1.0
beijing-time
Get Beijing time in any timezone.
Install
npm install @sqrtthree/beijing-time
API
beijingDate(date: Date): BeijingDate
Get Beijing time.
beijingDay(date: Date): string
Get day string of Beijing time, format: yyyy-MM-dd
beijingToday(): string
Get today of Beijing time, format: yyyy-MM-dd
sqrtthree.com · GitHub @sqrthree · Twitter @sqrtthree
0.1.0
3 years ago