GetCreationTimeUtc() private method

private GetCreationTimeUtc ( String path ) : DateTime
path String
return DateTime
Ejemplo n.º 1
0
    /// <summary>
    ///     Gets a specific file's creation time, in UTC.
    /// </summary>
    /// <param name="path">The path of the file.</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(FSFile.GetCreationTimeUtc(path));
    }
Ejemplo n.º 2
0
 public override DateTimeOffset GetCreationTime()
 => new DateTimeOffset(F.GetCreationTimeUtc(this.FullName), TimeSpan.Zero);
Ejemplo n.º 3
0
 public static DateTime GetCreationTimeUtc(String path)
 {
     return(File.GetCreationTimeUtc(path));
 }
Ejemplo n.º 4
0
 public static System.DateTime GetCreationTimeUtc(string path) =>
 MSIOF.GetCreationTimeUtc(path);
Ejemplo n.º 5
0
 public DateTime GetFileCreationTimeUtc(string path)
 => File.GetCreationTimeUtc(path);
Ejemplo n.º 6
0
 public override DateTime GetCreationTimeUtc(string path)
 {
     return(File.GetCreationTimeUtc(path));
 }