time.at0.000001
Builds a new time object.
Arguments
no defined arguments
Return Value
The new time object, returned as a timestamp.Builds a time object from the given input.
something went wrong :(
Building a time object
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.time.at(1620669471).call
client.time.call(1620669471);
curl "https://proc.run/time" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data "1620669471"
1620669471.0
time.at
is useful for validating timestamps when composed with other time-based procs, like time.format
.
Timestamps are returned in seconds since the unix epoch, with microsecond precision.
Stuck? Want to chat about an idea? Join the community on Discord.