GetCreationTimeUtc() 개인적인 메소드

private GetCreationTimeUtc ( String path ) : DateTime
path String
리턴 DateTime
예제 #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));
    }
예제 #2
0
파일: FilePath.cs 프로젝트: ailen0ada/Mio
 public override DateTimeOffset GetCreationTime()
 => new DateTimeOffset(F.GetCreationTimeUtc(this.FullName), TimeSpan.Zero);
예제 #3
0
파일: Directory.cs 프로젝트: wpsmith/corefx
 public static DateTime GetCreationTimeUtc(String path)
 {
     return(File.GetCreationTimeUtc(path));
 }
예제 #4
0
 public static System.DateTime GetCreationTimeUtc(string path) =>
 MSIOF.GetCreationTimeUtc(path);
예제 #5
0
 public DateTime GetFileCreationTimeUtc(string path)
 => File.GetCreationTimeUtc(path);
예제 #6
0
 public override DateTime GetCreationTimeUtc(string path)
 {
     return(File.GetCreationTimeUtc(path));
 }