bigskysoftware / bigskysoftware/_hyperscript
[Feature Request] Built-in, English-like handling of Dates
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
It would be wonderful if Hyperscript could abstract away the complexity that is dealing with **dates** in Javascript. I would love to be able to do:
```
set startDate to 2025-01-29
set finishDate to (startDate + 7 days)
```
In order to be able to handle all kinds of date calculations, we'd need to have words like:
- `today`
- `year`, `month`, `day`, `hour` and `minutes`
That way we'd be able to do:
```
if the month of birthDate is the month of today then
if the day of birthDate is the day of today then
send birthdayGreetings to #welcomeMsg
end
end
```
And the complexity of dealing with localised date and time calculations could be abstracted by introducing the keyword `local`, like this:
```
set startDate to local today
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.