Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

strftime(X, Y) function #50

Description

@tombonfert
  • Takes a UNIX time value, X, as the first argument and renders the time as a string using the format specified by Y.
  • The UNIX time must be in seconds (from the Splunk documentation)
    • It is also possible to provide a field of timestamp type (e.g. ‘_time’) for argument X (see example)
  • We do not support X in seconds, but only in timestamp format. We are applying Spark's 'date_format' function.
  • Solution: Depending on the input type (seconds vs. timestamp) we need to apply either the ‘from_unixtime’ or ‘date_format’ function
    • Problem: If X is a field, we are not able to determine the data type of X

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions