ChronoX-API
    ChronoX-API
    • span
      • start
        • Leap
        • Contains
      • end
        • Leap
        • Contains
      • Contains
        GET
    • Leap
      GET
    • Contains
      GET

      Leap

      GET
      /{direction}/{mode}/{cron}
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET '/next/c/* * * *?now&leap=&offset'
      Response Response Example
      200 - Example 1
      {
          "data": {
              "dest": "2019-08-24T14:15:22Z"
          }
      }

      Request

      Path Params
      direction
      string 
      required
      enum: prev, next
      Example:
      next
      mode
      string 
      required
      enum: c, w, m, d; representing calendar mode
      Example:
      c
      cron
      string 
      required
      cron expresession of calendar mode specified by mode path parameter
      Example:
      * * * *
      Query Params
      now
      string <date-time> | null 
      write-onlyoptional
      ISO format string representing the datetime for calculation start from
      leap
      integer  | null 
      write-onlyoptional
      next/previous n datetime point
      >= 1<= 4294967295
      offset
      string 
      optional
      only useful when now is not set, indicate the utc offset for auto generate now datetime

      Responses

      🟢200Success
      application/json
      Body
      data
      object (Leap) 
      required
      dest
      string <date-time>
      read-onlyrequired
      🟠400Bad Request
      Modified at 2024-04-05 13:44:20
      Previous
      Contains
      Next
      Contains
      Built with