Defines a time stamp for use in file names.
More...
|
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] |
|
Defines a time stamp for use in file names.
◆ 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
-
◆ ToString()
override string XLToolbox.Backup.TimeStamp.ToString |
( |
| ) |
|
|
inline |
Returns the formatted time stamp, or an empty string if the DateTime property is null.
- Returns
◆ 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: