We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b080eb9 commit 6265a91Copy full SHA for 6265a91
1 file changed
README.md
@@ -33,6 +33,32 @@ Lunar phases, in order:
33
| Last Quarter | 🌗 | 🌓 |
34
| Waning Crescent | 🌘 | 🌒 |
35
36
+## Julian Day
37
+
38
+Convert to and from Gregorian Dates to Julian Days via the `JulianDay` module.
39
40
+To convert a date to Julian Day:
41
42
+```js
43
+import { JulianDay } from "lunarphase-js";
44
45
+const date = new Date();
46
+const julian = JulianDay.fromDate(date);
47
+```
48
49
+To convert a Julian Day to a date:
50
51
52
53
54
+const julian = 2459356.529302257;
55
+const date = JulianDay.toDate(julian);
56
57
58
59
+## Lunar Phases
60
61
62
For a specific date, pass a date object to a function
63
64
```js
0 commit comments