Code Monkey home page Code Monkey logo

kronos's Introduction

Allows you to input datetimes in all kinds of different formats and get both human-readable and iso8601 datetimes in timezones that we care a lot about! Uses the spacetime time library for (most) parsing and transformation.

Input formats

YYYY-MM-DDTHH:mm:ss-ZZZZ is best, but who wants to write that every time?

  • You can use almost any format you can think of (with a few exceptions: dates always need to specify the 4-digit year, for example)
  • It will use your locale's default for ambiguous dates like 02/02/2002
  • Things like now or today will work, as well as times with or without timezones
  • At the moment, dates like Jan 30, 2019 cannot be parsed: use 2018-01-30 instead

Tell me if something doesn't work, but should!

To-do

  • Add support for non-default timezone selector
  • Better support for space-separated datetimes like 2018-12-25 9:45pm
  • Add a GPS tag to Pauline so we can automatically adjust the tz info
  • Copy-on-click for times (maybe just ISO?)
  • Add local timezone info
  • Travel to random timezones for... testing
  • Add seconds?
  • Allow time (instead of date or datetime) input
  • Allow setting locale
  • Replace regexp with datetime parser
  • Add zone name/offset to each location name
  • General cleanup/style improvements
  • Make input into params on the URL so that datetimes can be copied as a URL?

kronos's People

Contributors

emoulson avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kronos's Issues

Font Size Unusual For Large Displays

For large horizontal displays the UI is a bit challenging. Can you make some CSS adjustments to make this scale a little better for that orientation.

Replace date input regex with a nicer parser

Using a really long and complicated regex to parse wildly varying datetime inputs is difficult to maintain and prone to error.

Replacing the input parsing regex with a better parser would allow a wider range of input formats and would be easier to maintain and explain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.