Code Monkey home page Code Monkey logo

datetime's Introduction

date-service

This is the Clojure app for datetime.

My current plan for datetime is to create a date/time service where people can do calculations on dates, get information on holidays, etc.

There may be a storage component to it, for appointments, but it's my intent for it to be useful without any customization.

Current Features

Tells the UTC time according to the server it's running on.

Goals

Treat dates and times as resources, with subresources and breadcrumbs

  • /2012 (year) show some year facts and a list of months, as well some extra elements that may be hidden such as weeks and a yearly calendar
  • /2012/02 (month) show some month facts and calendar of days
  • /2012/02/14 (day) show the hours in the day.
  • /2012/02/04/10 this is the range 10:00-10:59, 24-hour-time.
  • /2012/02/04/16/30 this is 4:30PM on 2012-02-04

Other divisions:

  • /2012/week/10 show the week of the year according to the most common convention
  • /2012/02/04/16/30?d=90m this is from 4:30PM-6:00pm (d is for duration)

Breadcrumbs could be in a traditional date form. For example, this:

2012-02-14 09:00

instead of:

/2012 » 02 » 14 » 09 » 00

It's going to be a challenge to figure out what should be GMT and what should be local time.

There will be a lot of catching and redirecting going on. For instance /2012/02/14/3pm could redirect to /2012/02/14. Also colons which normally could redirect to.

If it's found useful, ranges could be proposed when going to minutes that are multipliers of 30 or multipliers of 15. For instance /2012/02/14/03/15 could suggest 2012/02/14/03/15?d=15. Or maybe there would be links to 30-minute and 60-minute duration versions on every minute page.

'nix-like tools

There should be a way to get simple, unix-y output. For instance /2012/cal could show output similar to cal -y.

JSON API

I'm interested in having a nice API for it.

Storage?

While I want this to be useful without adding events or setting up email for alerts, I'm interested in adding this.

LICENSE

date-service is relased under the MIT License.

datetime's People

Contributors

benatkin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

datetime's Issues

support routing to a given holiday

use a holiday library to route to a few holidays, with aliases. For example /valentines or /vday would redirect to /valentines-day, with a countdown and a link to Wikipedia.

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.