Pipes
2024.80 Pipes
2024.80 Pipes
  • Introduction
  • Configuration
  • Valves
    • API
      • HTTP Response Format Valve
    • BankID
      • BidOperation
      • BidToItems
    • Cef event
    • Codecs
      • Base64 Encode
      • Base64 Decode
    • DateTime
      • Instant Generator
      • Instant Transformer
    • Debug
      • Dump Request
      • Dump Session
      • Dump State
      • Wait
    • Delivery
      • Clean Mobile Valve
      • SMS Valve
      • Voice Valve
      • SMTP Valve
    • EntraID
      • Users
        • Create User
        • Update User
        • Delete User
        • Get User
        • List Users
        • List Groups for a user
        • List Direct Reports
        • List Owned Objects
        • Reset Password
      • Groups
        • Create Group
        • Update Group
        • Delete Group
        • List Groups
      • Directory
        • Restore Deleted Item
    • Flow
      • Flow Fail
      • Flow State Add
      • Assert Value
      • Pipe Exec
      • Pipe Call
    • Freja
    • HTTP
      • GET
      • PUT
      • POST
      • DELETE
    • Item
      • Item Create
      • Item Merge
      • Item Remove
      • Items Remove
      • Item Property Add
      • Item Property Split
      • Item Property Rename
      • Item Property Token Replace
      • MV Property To Items
      • JSON To Items
      • MV Property Join
    • JDBC Query
    • JSON
      • JsonObjectCreate
    • JWT
      • CreateJwt
      • ParseJwt
    • LDAP
      • LDAP Search
      • LDAP Group Filter
      • LDAP Bind
      • LDAP Add
      • LDAP Delete
      • LDAP Modify
      • LDAP Move
      • DN Parse
    • Misc
      • Basic Auth
    • OTP
      • OTP Generation
      • OTP Validation
    • PKI
      • X509 Certificate Extractor
      • X509 Certificate Validator
      • Passcode Generator
    • Request
      • RequestParameterExist
      • RequestParameterRename
    • ScriptEval
    • MobilSITHS
    • Session
      • Session Put
      • Session Create
      • CopyFromSession
    • Tokens
      • Token Authentication
Powered by GitBook
On this page
  • Configuration
  • Duration examples
  1. Valves
  2. DateTime

Instant Generator

Generates a new datetime Instant.

The created instant represents a specific moment in time.

Default Instant format is ISO-8601 (Example value: 2023-02-03T13:34:46.094150Z) where Z indicates UTC.

Configuration

Valve name: InstantGenerator

Name
Description
Default value
Mandatory
Expanded

dest

Property containing the created Instant.

N/A

dest_pattern

Instant pattern. ISO-8601 format

"yyyy-MM-ddTHH:mm:ss.ffffffZ"

dest_tz

Instant time zone.

"UTC"

duration

Instant duration. ISO-8601 duration format PnDTnHnMn.nS

{
    "name": "InstantGenerator",
    "config": {
        "dest": "instant",
        "dest_pattern": "yyyy-MM-dd HH:mm:ss",
        "dest_tz": "GMT-1",
        "duration": "+PT1H20M"
    }
}

Duration examples

"PT20.345S" -- parses as "20.345 seconds"
"PT15M"     -- parses as "15 minutes" (where a minute is 60 seconds)
"PT10H"     -- parses as "10 hours" (where an hour is 3600 seconds)
"P2D"       -- parses as "2 days" (where a day is 24 hours or 86400 seconds)
"P2DT3H4M"  -- parses as "2 days, 3 hours and 4 minutes"
"P-6H3M"    -- parses as "-6 hours and +3 minutes"
"-P6H3M"    -- parses as "-6 hours and -3 minutes"
"-P-6H+3M"  -- parses as "+6 hours and -3 minutes"
"+PT1H20M"  -- parses as "+1 hour and +20 minutes"
PreviousDateTimeNextInstant Transformer