refactor: add age to birthday greeting
This commit is contained in:
@@ -24,7 +24,7 @@ async function main() {
|
|||||||
getWeather()
|
getWeather()
|
||||||
])
|
])
|
||||||
|
|
||||||
const message = `${isBirthday ? "Happy Birthday" : "Good Morning"}, SilicoFlare!
|
const message = `${isBirthday ? `Happy Birthday, SilicoFlare! You are now ${dayjs().diff(dayjs("2003-09-23"), "years")} years old.` : "Good Morning, SilicoFlare!"}
|
||||||
|
|
||||||
Today is **${dayjs().format("dddd, DD MMMM YYYY")}**.
|
Today is **${dayjs().format("dddd, DD MMMM YYYY")}**.
|
||||||
Hoy es **${dayjs().locale("es").format("dddd, D [de] MMMM [de] YYYY")}**.
|
Hoy es **${dayjs().locale("es").format("dddd, D [de] MMMM [de] YYYY")}**.
|
||||||
|
|||||||
Reference in New Issue
Block a user