Skip to content

unix/validate

  • isValidUnixMilliseconds: Return true when timestamp is a Unix milliseconds value every unix/ function accepts.
  • isValidUnixRange: Return true if value1 and value2 form a valid Unix range — both safe-integer epochs and value1 < value2 (or <= with allowEqual).
  • isValidUnixSeconds: Return true when timestamp is a Unix seconds value every unix/ function accepts.
  • isValidUnixUnit: Return true when unit is a valid UnixUnit.