GetLastAccessTimeUtc() public static method

public static GetLastAccessTimeUtc ( string path ) : System.DateTime
path string
return System.DateTime
Exemplo n.º 1
0
 public static DateTime GetLastAccessTimeUtc(string path)
 {
     if (_provider == null)
     {
         return(Directory.GetLastAccessTimeUtc(path));
     }
     return(_provider.GetLastAccessTimeUtc(path));
 }
Exemplo n.º 2
0
    /// <summary>
    ///     Gets a specific directory's last access 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 GetLastAccessTime(string path)
    {
        _ = Requires.NotNullOrWhiteSpace(
            path,
            nameof(path));

        return(FSDir.GetLastAccessTimeUtc(path));
    }
Exemplo n.º 3
0
 public static System.DateTime GetLastAccessTimeUtc(string path) =>
 MSIOD.GetLastAccessTimeUtc(path);
Exemplo n.º 4
0
 public override DateTimeOffset GetLastAccessTime()
 => new DateTimeOffset(D.GetLastAccessTimeUtc(this.FullName), TimeSpan.Zero);
Exemplo n.º 5
0
 public override DateTime GetLastAccessTimeUtc(string path)
 {
     return(Directory.GetLastAccessTimeUtc(path));
 }