epoch Function

public pure function epoch() result(dt)

Return the Unix epoch: 1970-01-01T00:00:00Z.

Arguments

None

Return Value type(datetime_type)


Source Code

    pure function epoch() result(dt)
        !! version: experimental
        !!
        !! Return the Unix epoch: 1970-01-01T00:00:00Z.
        type(datetime_type) :: dt
        dt = datetime_type(1970, 1, 1, 0, 0, 0, 0, 0)
    end function epoch