Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | List of all members
org.sleuthkit.autopsy.coreutils.TimeZoneUtils Class Reference

Static Public Member Functions

static String convertToAlphaNumericFormat (String timeZoneId)
 
static List< String > createTimeZoneList ()
 
static String createTimeZoneString (TimeZone timeZone)
 
static String getFormattedTime (long epochTime)
 
static String getFormattedTimeISO8601 (long epochTime)
 
static TimeZone getTimeZone ()
 

Private Member Functions

 TimeZoneUtils ()
 

Detailed Description

Utility methods for workig with time zones.

Definition at line 36 of file TimeZoneUtils.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.TimeZoneUtils.TimeZoneUtils ( )
private

Prevents instantiation.

Definition at line 177 of file TimeZoneUtils.java.

Member Function Documentation

static String org.sleuthkit.autopsy.coreutils.TimeZoneUtils.convertToAlphaNumericFormat ( String  timeZoneId)
static

Converts a Java timezone id to a coded string with only alphanumeric characters. Example: "America/New_York" is converted to "EST5EDT" by this method.

Parameters
timeZoneIdThe time zone id.
Returns
The converted time zone string.

Definition at line 47 of file TimeZoneUtils.java.

Referenced by org.sleuthkit.autopsy.casemodule.Case.convertTimeZone().

static List<String> org.sleuthkit.autopsy.coreutils.TimeZoneUtils.createTimeZoneList ( )
static
static String org.sleuthkit.autopsy.coreutils.TimeZoneUtils.createTimeZoneString ( TimeZone  timeZone)
static
static String org.sleuthkit.autopsy.coreutils.TimeZoneUtils.getFormattedTime ( long  epochTime)
static

Returns the time formatted in the user selected time zone.

Parameters
epochTime
Returns

Definition at line 145 of file TimeZoneUtils.java.

References org.sleuthkit.autopsy.coreutils.TimeZoneUtils.getTimeZone().

Referenced by org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.addEmailMsgProperty(), org.sleuthkit.autopsy.contentviewers.artifactviewers.DefaultTableArtifactContentViewer.ResultsTableArtifact.addRows(), org.sleuthkit.autopsy.contentviewers.artifactviewers.DefaultTableArtifactContentViewer.ResultsTableArtifact.appendJsonElementToString(), org.sleuthkit.autopsy.contentviewers.osaccount.OsAccountDataPanel.buildBasicProperties(), org.sleuthkit.autopsy.datamodel.KeywordHits.createBlackboardArtifactNode(), org.sleuthkit.autopsy.datamodel.OsAccounts.OsAccountNode.createSheet(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.createSheet(), org.sleuthkit.autopsy.contentviewers.Metadata.MetaDataWorker.doInBackground(), org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.fillPropertyMap(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactNode.fillPropertyMap(), org.sleuthkit.autopsy.report.infrastructure.TableReportGenerator.AttributeColumn.getCellData(), org.sleuthkit.autopsy.discovery.search.DomainSearch.getDate(), org.sleuthkit.autopsy.discovery.ui.ArtifactsListPanel.DomainArtifactTableModel.getFallbackValue(), org.sleuthkit.autopsy.datamodel.AbstractAbstractFileNode< SpecialDirectory >.getProperties(), org.sleuthkit.autopsy.datamodel.ArtifactStringContent.getString(), org.sleuthkit.autopsy.discovery.ui.ArtifactsListPanel.DomainArtifactTableModel.getStringForColumn(), and org.sleuthkit.autopsy.contentviewers.artifactviewers.GeneralPurposeArtifactViewer.updateView().

static String org.sleuthkit.autopsy.coreutils.TimeZoneUtils.getFormattedTimeISO8601 ( long  epochTime)
static

Returns the formatted time in the user selected time zone in ISO8601 format.

Parameters
epochTimeSeconds from java epoch
Returns
Formatted date time string in ISO8601

Definition at line 157 of file TimeZoneUtils.java.

References org.sleuthkit.autopsy.coreutils.TimeZoneUtils.getTimeZone().

Referenced by org.sleuthkit.autopsy.keywordsearch.Ingester.SolrFieldsVisitor.getCommonAndMACTimeFields().

static TimeZone org.sleuthkit.autopsy.coreutils.TimeZoneUtils.getTimeZone ( )
static

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

Copyright © 2012-2022 Basis Technology. Generated on: Wed Oct 5 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.