Timestamps
Proc represents time as a number corresponding to seconds since the unix epoch on 1 January 1970, 00:00:00 UTC
. Timestamps are precise to one microsecond, or one-millionth of a second.
something went wrong :(
Getting the current time
Setup
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
authorization=PROCAUTH
client.time.now.call
client.time.now.call();
curl "https://proc.run/time/now" --silent --request POST \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain"
1685265195.431399
Get and manipulate time using the time package.
Stuck? Want to chat about an idea? Join the community on Discord.