1
0
Fork 0
datetime.link/README.md

34 lines
1.0 KiB
Markdown
Raw Normal View History

2020-09-28 09:54:47 +08:00
# WIP: datetime.link
Clean links to a point in time
## Rationale
Sometimes, you want to refer to a point in time, but want to provide a timezone converter for them. datetime.link provides links to points in time and presents them in localtime. You can also optionally select which timezones to present the time in.
2020-10-27 17:16:49 +08:00
## Compatibility
To achieve backwards compatibility and usability without JavaScript, the dates must be converted and rendered into pure HTML. This makes cURL a working target.
Progressive enhancement extends on the UI by providing a visual editor for timezones, dates and times that change the URL. This is done with JavaScript and native input elements. In the future custom input elements could replace the native ones.
2020-10-27 20:57:46 +08:00
## Timezone Specifiers
### `tzdata`
These are defined in the ICANN/IETF database. Examples:
- Asia/Kolkata (India)
- Asia/Singapore (Singapore)
- America/Mexico_City (Mexico)
- Asia/Saigon (Vietnam)
- America/Los_Angeles (Pacific)
### GeoNames
Sources:
- `cities15000.txt`
- `countryInfo.txt`
-