
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
date2timestamp
Advanced tools
Convert a date to its UNIX epoch timestamp
I needed to convert dates to timestamps for time tracking and scheduling things to go live. This helps with that.
Get timestamp for today at midnight (00:00):
date2timestamp
# Example output: 1478498400
Get timestamp for some other day (2020-08-26):
date2timestamp -y 2020 -m 8 -d 26
# Output: 1598418000
Get timestamp for really specific time (2020-08-26 at 03:55:12):
date2timestamp -y 2020 -m 8 -d 26 -H 3 -M 55 -S 12
# Output: 1598432112
NOTE: Need to convert a timestamp back to a human-readable date? Run:
# Linux / GNU-based
date -d @1267619929
# macOS / BSD-based
date -r <timestamp>
yarn
or npm
If using npm:
npm i -g date2timestamp
If using Yarn:
yarn global add date2timestamp
FAQs
> Convert a date to its UNIX epoch timestamp
We found that date2timestamp 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.