1
0
Fork 0
 
 
 
 
 
 
Go to file
Ambrose Chua 8a8924a2d3 Add URL parser 2020-11-08 21:50:16 +08:00
.github/workflows Rename container 2020-11-08 14:49:23 +08:00
assets Version control 3rd party assets 2020-11-07 23:57:45 +08:00
data Logging with zap and increase modular split 2020-11-08 17:00:23 +08:00
scripts Reorganise structure 2020-11-07 23:36:02 +08:00
templates Switch deploy to systemd 2020-11-08 02:40:25 +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 Logging with zap and increase modular split 2020-11-08 17:00:23 +08:00
README.md Remove old code for rewrite 2020-10-27 20:57:46 +08:00
app.go Logging with zap and increase modular split 2020-11-08 17:00:23 +08:00
app_test.go Add URL parser 2020-11-08 21:50:16 +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 Logging with zap and increase modular split 2020-11-08 17:00:23 +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 Prototype data 2020-11-04 03:28:22 +08:00
url.go Add URL parser 2020-11-08 21:50:16 +08:00
url_test.go Add URL parser 2020-11-08 21:50:16 +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