
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
Oops!!! I forgot about Date() object in JavaScript. So this module is quite useless now. :)
This is a node.js module, writen in C++, that implements some missing time functions, such as getting timeval struct and getting unix time.
It was written by Peteris Krumins (peter@catonmat.net). His blog is at http://www.catonmat.net -- good coders code, great reuse.
The module exports three functions:
* getUnixTime - returns seconds since 1970, Jan 1 (+/- timezone offset)
* getTimeval - returns timeval struct as object with .sec and .usec props
* getMilliseconds - returns milliseconds since 1970, Jan 1 (+/- tz offset)
See examples/ dir for working examples.
As usual,
node-waf configure build
The module will be called time.node. To use it, make sure it's in NODE_PATH.
This library was written for my and SubStack's StackVM startup:
http://github.com/pkrumins/stackvm
http://github.com/substack/stackvm
Have fun with time!
Sincerely, Peteris Krumins http://www.catonmat.net
FAQs
An example C++ module for node.js that exports several synchronous time functions
The npm package cpptime receives a total of 1 weekly downloads. As such, cpptime popularity was classified as not popular.
We found that cpptime demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.