Skip to content

unix/get

  • The core functions, which every industry uses.
  • getUnixAgo: Return the Unix epoch before now, counted from the current time in UTC.
  • getUnixDay: Return the current day from the Unix timestamp in UTC as a zero-padded string.
  • getUnixHour: Return the current hour from the Unix timestamp in UTC as a zero-padded string.
  • getUnixIn: Return the Unix epoch after now, counted from the current time in UTC.
  • getUnixMicrosecond: Return the current microsecond from the Unix timestamp in UTC as a zero-padded string.
  • getUnixMillisecond: Return the current millisecond from the Unix timestamp in UTC as a zero-padded string.
  • getUnixMinute: Return the current minute from the Unix timestamp in UTC as a zero-padded string.
  • getUnixMonth: Return the current month from the Unix timestamp in UTC as a zero-padded string.
  • getUnixNanosecond: Return the current nanosecond from the Unix timestamp in UTC as a zero-padded string.
  • getUnixNow: Return the current Unix timestamp in either seconds or milliseconds.
  • getUnixNowUnit: Return the requested unit value from the current Unix timestamp in UTC.
  • getUnixSecond: Return the current second from the Unix timestamp in UTC as a zero-padded string.
  • getUnixYear: Return the current year from the Unix timestamp in UTC as a zero-padded string.
  • UnixNowUnit: Units extractable from the current Unix timestamp in UTC via getUnixNowUnit.

Last updated:

Accessibility
© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.