1
0
Fork 0
 
 
 
 
 
 
Go to file
Ambrose Chua 5e9d1ab6cb Big change
- Reorganised request template handling and error handling
- Added Content-Type response
- Implemented templating data
- Break out router
2020-11-10 17:17:11 +08:00
.github/workflows Add zone parsing, and test code separately 2020-11-09 00:28:30 +08:00
assets Version control 3rd party assets 2020-11-07 23:57:45 +08:00
data Big change 2020-11-10 17:17:11 +08:00
scripts Big change 2020-11-10 17:17:11 +08:00
templates Big change 2020-11-10 17:17:11 +08:00
third-party Version control 3rd party assets 2020-11-07 23:57:45 +08:00
.dockerignore Initial Dockerfile 2020-11-08 00:11:38 +08:00
.gitignore Initial Dockerfile 2020-11-08 00:11:38 +08:00
Dockerfile Logging with zap and increase modular split 2020-11-08 17:00:23 +08:00
LICENSE Create LICENSE 2020-09-27 14:03:34 +08:00
Makefile Big change 2020-11-10 17:17:11 +08:00
README.md Remove old code for rewrite 2020-10-27 20:57:46 +08:00
app.go Big change 2020-11-10 17:17:11 +08:00
app_test.go Big change 2020-11-10 17:17:11 +08:00
error.go Big change 2020-11-10 17:17:11 +08:00
go.mod Add URL parser 2020-11-08 21:50:16 +08:00
go.sum Add URL parser 2020-11-08 21:50:16 +08:00
logger_development.go Big change 2020-11-10 17:17:11 +08:00
logger_production.go Logging with zap and increase modular split 2020-11-08 17:00:23 +08:00
main.go Logging with zap and increase modular split 2020-11-08 17:00:23 +08:00
mime.go Prototype data 2020-11-04 03:28:22 +08:00
mime_test.go Add zone parsing, and test code separately 2020-11-09 00:28:30 +08:00
template.go Big change 2020-11-10 17:17:11 +08:00
template_test.go Big change 2020-11-10 17:17:11 +08:00
url.go Big change 2020-11-10 17:17:11 +08:00
url_test.go Big change 2020-11-10 17:17:11 +08:00
zone.go Big change 2020-11-10 17:17:11 +08:00
zone_test.go Big change 2020-11-10 17:17:11 +08:00

README.md

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.

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.

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