
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
unix-timestamp
Advanced tools
Tiny library to create and manipulate Unix timestamps in Javascript. (A Unix timestamp is the number of seconds elapsed since Unix epoch time, i.e. January 1 1970 00:00 UTC.)
Install with npm install unix-timestamp
, then:
timestamp.now([delta])
gives the current time, optionally applying a delta (see below)timestamp.fromDate(dateOrString)
gives the time from a Javascript Date object or an ISO 8601 date stringtimestamp.add(time, delta)
applies a delta to the given timetimestamp.duration(delta)
gives the delta timestamp for the given delta stringA delta can be either a number (unit: seconds) or a string with format [+|-] [{years}y] [{months}M] [{weeks}w] [{days}d] [{hours}h] [{minutes}m] [{seconds}s] [{milliseconds}ms]
(for example -30s
).
Install dev dependencies with npm install
, then npm test
.
FAQs
Tiny library to create and manipulate Unix timestamps
The npm package unix-timestamp receives a total of 24,177 weekly downloads. As such, unix-timestamp popularity was classified as popular.
We found that unix-timestamp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.