Sleuth Kit Java Bindings (JNI)  4.6.0
Java bindings for using The Sleuth Kit
org.sleuthkit.datamodel.TimeUtilities Class Reference

Static Public Member Functions

static String epochToTime (long epoch)
 
static String epochToTime (long epoch, TimeZone tzone)
 
static long timeToEpoch (String time)
 

Detailed Description

Time related utility methods

Definition at line 31 of file TimeUtilities.java.

Member Function Documentation

static String org.sleuthkit.datamodel.TimeUtilities.epochToTime ( long  epoch)
static

Return the epoch into string in ISO 8601 dateTime format

Parameters
epochtime in seconds
Returns
formatted date time string as "yyyy-MM-dd HH:mm:ss"

Definition at line 42 of file TimeUtilities.java.

Referenced by org.sleuthkit.datamodel.AbstractFile.epochToTime(), and org.sleuthkit.datamodel.BlackboardAttribute.getDisplayString().

static String org.sleuthkit.datamodel.TimeUtilities.epochToTime ( long  epoch,
TimeZone  tzone 
)
static

Return the epoch into string in ISO 8601 dateTime format, in the given timezone

Parameters
epochtime in seconds
tzonetime zone
Returns
formatted date time string as "yyyy-MM-dd HH:mm:ss"

Definition at line 59 of file TimeUtilities.java.

static long org.sleuthkit.datamodel.TimeUtilities.timeToEpoch ( String  time)
static

Convert from ISO 8601 formatted date time string to epoch time in seconds

Parameters
timeformatted date time string as "yyyy-MM-dd HH:mm:ss"
Returns
epoch time in seconds

Definition at line 77 of file TimeUtilities.java.

Referenced by org.sleuthkit.datamodel.AbstractFile.timeToEpoch().


The documentation for this class was generated from the following file:

Copyright © 2011-2018 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.