2025-02-23

2025-02-24
This commit is contained in:
gcch 2025-02-23 16:09:48 +01:00
commit 0f52ff0cef
40 changed files with 846 additions and 75 deletions

View file

@ -1,3 +1,5 @@
import { DateTime, pipe } from "effect";
export const getTodayDate = (): string =>
new Date(Date.now()).toLocaleDateString("fr-FR", {
day: "numeric",
@ -5,3 +7,9 @@ export const getTodayDate = (): string =>
weekday: "long",
year: "numeric",
});
export const getCurrentYear = (): number =>
pipe(
DateTime.unsafeNow(),
DateTime.getPart("year"),
);