GetCreationTimeUtc() public static method

public static GetCreationTimeUtc ( string path ) : System.DateTime
path string
return System.DateTime
Esempio n. 1
0
    /// <summary>
    ///     Gets a specific directory's creation time, in UTC.
    /// </summary>
    /// <param name="path">The path of the directory.</param>
    /// <returns>
    ///     A <see cref="DateTime" /> in UTC.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    ///     <paramref name="path" /> is <see langword="null" /> (<see langword="Nothing" />
    ///     in Visual Basic).
    /// </exception>
    public DateTime GetCreationTime(string path)
    {
        _ = Requires.NotNullOrWhiteSpace(
            path,
            nameof(path));

        return(FSDir.GetCreationTimeUtc(path));
    }
Esempio n. 2
0
 public static System.DateTime GetCreationTimeUtc(string path) =>
 MSIOD.GetCreationTimeUtc(path);
Esempio n. 3
0
 public override DateTimeOffset GetCreationTime()
 => new DateTimeOffset(D.GetCreationTimeUtc(this.FullName), TimeSpan.Zero);
Esempio n. 4
0
 public override DateTime GetCreationTimeUtc(string path)
 {
     return(Directory.GetCreationTimeUtc(path));
 }