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

Static Public Member Functions

static String createTimeStamp ()
 
static boolean endsWithTimeStamp (String inputString)
 
static int getTimeStampLength ()
 
static String getTimeStampOnly (String inputString)
 
static String removeTimeStamp (String inputString)
 

Private Member Functions

 TimeStampUtils ()
 

Static Private Attributes

static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss")
 
static final int LENGTH_OF_DATE_TIME_STAMP = 20
 
static final Pattern TIME_STAMP_PATTERN = Pattern.compile("\\d{4}_\\d{2}_\\d{2}_\\d{2}_\\d{2}_\\d{2}$")
 

Detailed Description

Utility methods for working with time stamps of the form 'yyyy_MM_dd_HH_mm_ss'.

Definition at line 30 of file TimeStampUtils.java.

Constructor & Destructor Documentation

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

Definition at line 102 of file TimeStampUtils.java.

Member Function Documentation

static String org.sleuthkit.autopsy.coreutils.TimeStampUtils.createTimeStamp ( )
static
static boolean org.sleuthkit.autopsy.coreutils.TimeStampUtils.endsWithTimeStamp ( String  inputString)
static
static int org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampLength ( )
static
static String org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampOnly ( String  inputString)
static

Gets the time stamp suffix from a string, if present.

Parameters
inputStringthe name to check for a timestamp
Returns
The time stamp, may be the empty.

Definition at line 91 of file TimeStampUtils.java.

References org.sleuthkit.autopsy.coreutils.TimeStampUtils.endsWithTimeStamp(), and org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampLength().

static String org.sleuthkit.autopsy.coreutils.TimeStampUtils.removeTimeStamp ( String  inputString)
static

Removes the time stamp suffix from a string, if present.

Parameters
inputStringThe string to trim.
Returns
The trimmed string.

Definition at line 76 of file TimeStampUtils.java.

References org.sleuthkit.autopsy.coreutils.TimeStampUtils.endsWithTimeStamp(), and org.sleuthkit.autopsy.coreutils.TimeStampUtils.getTimeStampLength().

Referenced by org.sleuthkit.autopsy.casemodule.multiusercases.CoordinationServiceUtils.getCaseNameNodePath().

Member Data Documentation

final SimpleDateFormat org.sleuthkit.autopsy.coreutils.TimeStampUtils.DATE_FORMAT = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss")
staticprivate

Definition at line 37 of file TimeStampUtils.java.

final int org.sleuthkit.autopsy.coreutils.TimeStampUtils.LENGTH_OF_DATE_TIME_STAMP = 20
staticprivate
final Pattern org.sleuthkit.autopsy.coreutils.TimeStampUtils.TIME_STAMP_PATTERN = Pattern.compile("\\d{4}_\\d{2}_\\d{2}_\\d{2}_\\d{2}_\\d{2}$")
staticprivate

Definition at line 35 of file TimeStampUtils.java.


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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.