__ __ __ /\ \ /\ \__ /\ \__ \_\ \ __ \ \ ,_\ __ __ __ _\ \ ,_\ /'_` \ /'__`\ \ \ \/ /'__`\ _______ /'__`\\ \/'\\ \ \/ /\ \L\ \/\ \L\.\_\ \ \_/\ __//\______\\ __//> </ \ \ \_ \ \___,_\ \__/.\_\\ \__\ \____\/______/ \____\\_/\_\ \ \__\ \/__,_ /\/__/\/_/ \/__/\/____/ \/____///\/_/ \/__/
Date objects with useful
Install from npm:
$ npm install date-ext
Formatting is now extremely simple and uses the same parameters as PHP's date function as well as the escape sequence (backslash).
Want to schedule a function to be called at a certain time? Well, it couldn't be any easier.
If the date is now or in the past it will simply be called immediately. Also, if you change your mind you can just prevent it from being called.
scheduleId is returned by the call to
schedule and will be unique for
every call. However, This will be
undefined in cases where the function was
The library also comes packed with a few more simple - yet extremely useful - everyday methods.
If you have any problems with this library or would like to see the changes currently in development you can do so here;
Developers should run all tests in
test/index.html and ensure they pass
before submitting a pull request.
Take a look at
docs/date-ext.html to get a better understanding of what the code
If that doesn't help, feel free to follow me on Twitter, @neocotic.
However, if you want more information or examples of using this library please visit the project's homepage;