The isEpochTimeArg() function indicates if the specified time can be converted to a float datatype.
results = isEpochTimeArg(time)
|
time |
String |
Time 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. |
|
ValueError,TypeError |
Value cannot be converted to float datatype. |
from splunk.appserver.mrsparkle.lib import util
... elided ...
def setTime(earliest, latest):
if (earliest) :
if (isEpochTimeArg(earliest)):
... elided ...
else
... elided ...