Daniel's XL Toolbox NG
XLToolbox.Backup.TimeStamp Class Reference

Defines a time stamp for use in file names. More...

Public Member Functions

 TimeStamp ()
 Creates a TimeStamp object without information. More...
 
 TimeStamp (string fileName)
 Creates a TimeStamp object by parsing a file name. More...
 
override string ToString ()
 Returns the formatted time stamp, or an empty string if the DateTime property is null. More...
 

Properties

static string WildcardPattern [get]
 Gets a wildcard pattern for use in file system searches. More...
 
static string FormatPattern [get]
 Gets a format string for use in DateTime.ToString(). More...
 
static Regex TimeStampRegex [get]
 Gets a regular expression that matches a time stamp in a file name. More...
 
DateTime DateTime [get, set]
 Gets or sets the date and time represented by this time stamp. More...
 
bool HasValue [get, set]
 

Detailed Description

Defines a time stamp for use in file names.

Constructor & Destructor Documentation

◆ TimeStamp() [1/2]

XLToolbox.Backup.TimeStamp.TimeStamp ( )
inline

Creates a TimeStamp object without information.

◆ TimeStamp() [2/2]

XLToolbox.Backup.TimeStamp.TimeStamp ( string  fileName)
inline

Creates a TimeStamp object by parsing a file name.

Parameters
fileName

Member Function Documentation

◆ ToString()

override string XLToolbox.Backup.TimeStamp.ToString ( )
inline

Returns the formatted time stamp, or an empty string if the DateTime property is null.

Returns

Property Documentation

◆ DateTime

DateTime XLToolbox.Backup.TimeStamp.DateTime
getset

Gets or sets the date and time represented by this time stamp.

◆ FormatPattern

string XLToolbox.Backup.TimeStamp.FormatPattern
staticget

Gets a format string for use in DateTime.ToString().

◆ HasValue

bool XLToolbox.Backup.TimeStamp.HasValue
getset

◆ TimeStampRegex

Regex XLToolbox.Backup.TimeStamp.TimeStampRegex
staticget

Gets a regular expression that matches a time stamp in a file name.

◆ WildcardPattern

string XLToolbox.Backup.TimeStamp.WildcardPattern
staticget

Gets a wildcard pattern for use in file system searches.


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