summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoru <@>2026-03-15 18:50:05 +0200
committeru <@>2026-03-15 18:50:05 +0200
commit07c82be91778003f43d064ea544235d31a785101 (patch)
tree4e9d13c9bb11a26dbf4d547e00d83b96a4d0073c /src/lib.rs
parentd388771c92dd41c5c63efc2d190fd1ee2fa4bcda (diff)
a
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9cc0ef8..6b28e00 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,7 +12,7 @@ pub mod dateparse;
pub mod solar;
use crate::{
dateparse::dateparse,
- solar::{dow, solar},
+ solar::{dow, solar, SexagenaryDate},
};
#[event(fetch)]
@@ -42,7 +42,12 @@ async fn fetch(req: Request, env: Env, _ctx: Context) -> Result<Response> {
let (m, d, y) = c;
let y = y + 2000;
let (dowc, dowl) = dow(y, m, d);
- let (y, m, d, t) = solar(y, m, d);
+ let SexagenaryDate {
+ year: y,
+ month: m,
+ day: d,
+ term: t,
+ } = solar(y, m, d);
let href = l.replace('/', "_");
html! {
(PreEscaped("</pre>"))