tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Extensions
DateTimeOffsetExtensions.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Globalization;
3
4
namespace
Tgstation.Server.Host.Extensions
5
{
9
static
class
DateTimeOffsetExtensions
10
{
16
public
static
string
ToFileStamp
(
this
DateTimeOffset dateTimeOffset)
17
=> dateTimeOffset.ToString(
"yyyyMMddhhmmss"
, CultureInfo.InvariantCulture);
18
}
19
}
Tgstation.Server.Host.Extensions.DateTimeOffsetExtensions
Extension methods for the DateTimeOffset class.
Definition
DateTimeOffsetExtensions.cs:10
Tgstation.Server.Host.Extensions.DateTimeOffsetExtensions.ToFileStamp
static string ToFileStamp(this DateTimeOffset dateTimeOffset)
Convert a given dateTimeOffset into a string that can be used to stamp file creation times.
Tgstation.Server.Host.Extensions
Definition
ApplicationBuilderExtensions.cs:22
Generated by
1.9.8