Sleuth Kit Java Bindings (JNI) 4.14.0
Java bindings for using The Sleuth Kit
Loading...
Searching...
No Matches
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

◆ epochToTime() [1/2]

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.AbstractFile.epochToTime(), org.sleuthkit.datamodel.AbstractAttribute.getDisplayString(), and org.sleuthkit.datamodel.BlackboardAttribute.getDisplayString().

◆ epochToTime() [2/2]

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.

◆ epochToTimeISO8601()

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.

◆ timeToEpoch()

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:
  • /home/carriersleuth/repos/sleuthkit/bindings/java/src/org/sleuthkit/datamodel/TimeUtilities.java

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