Sleuth Kit Java Bindings (JNI)  4.12.1
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 String epochToTimeISO8601 (long epoch, TimeZone tzone)
 
static long timeToEpoch (String time)
 

Detailed Description

Time related utility methods

Definition at line 32 of file TimeUtilities.java.

Member Function Documentation

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

Return the epoch into string in yyyy-MM-dd HH:mm:ss format

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

Definition at line 46 of file TimeUtilities.java.

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

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

Return the epoch into string in yyyy-MM-dd HH:mm:ss 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 63 of file TimeUtilities.java.

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

Return the epoch into string in ISO8601 format, in the given timezone.

Parameters
epochtime in seconds
tzonetime zone
Returns
formatted date time string as

Definition at line 82 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 95 of file TimeUtilities.java.

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


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

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