objects with useful everyday methods.
Install from npm:
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 called immediately.
The library also comes packed with a few more simple - yet extremely useful - everyday methods.
- #3: Add guards to method declarations to prevent overriding future additions
- #3: Rename project to
If you have any problems with this library or would like to see the changes currently in development browse our issues.
Developers should run all tests (locally) and ensure they pass before submitting a pull request.
Take a look at the documentation to get a better understanding of what the code is doing.
If that doesn't help, feel free to follow me on Twitter, @neocotic.