2025-02-23
2025-02-24
This commit is contained in:
parent
2212f4fc14
commit
0f52ff0cef
40 changed files with 846 additions and 75 deletions
|
|
@ -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"),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue