Application Framework Reference

App Server Utilities API

isEpochTimeArg()

The isEpochTimeArg() function indicates if the specified time can be converted to a float datatype.

Synopsis

results = isEpochTimeArg(time)

Parameters

time

String

Time value.

Return Value

Boolean

Indication if time can be converted to a float datatype:

True = time can be converted to float.

False = time cannot be converted to float.

Raises

ValueError,TypeError

Value cannot be converted to float datatype.

Example

from splunk.appserver.mrsparkle.lib import util
    ... elided ...

def setTime(earliest, latest):
    if (earliest) :
        if (isEpochTimeArg(earliest)):
            ... elided ...
        else
            ... elided ...