1.0.1 • Published 2 years ago

taogram-time v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

info

Julian Day Date Object use like origin Date Object 基于Date并支持儒略日的时间函数对象

use it like Date

const date = new Time("YYYY-MM-DD");

get jd

date.getJD();

utc to jd

month between 1-12

const jd = TIME.UTC$JD(y,M,d,h,m,s);

or

const jd = TIME.$UTC$JD(date);

jd to utc

const {y,M,d,h,m,s} = TIME.JD$UTC(jd);

or

const date = TIME.$JD$UTC(jd);

is GregorianDays

TIME.isGregorianDays(year);
1.0.1

2 years ago

1.0.0

2 years ago