GetLastAccessTimeUtc() public static method

public static GetLastAccessTimeUtc ( string path ) : System.DateTime
path string
return System.DateTime
Example #1
0
 public static DateTime GetLastAccessTimeUtc(string path)
 {
     if (_provider == null)
     {
         return(Directory.GetLastAccessTimeUtc(path));
     }
     return(_provider.GetLastAccessTimeUtc(path));
 }
Example #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));
    }
Example #3
0
 public static System.DateTime GetLastAccessTimeUtc(string path) =>
 MSIOD.GetLastAccessTimeUtc(path);
Example #4
0
 public override DateTimeOffset GetLastAccessTime()
 => new DateTimeOffset(D.GetLastAccessTimeUtc(this.FullName), TimeSpan.Zero);
Example #5
0
 public override DateTime GetLastAccessTimeUtc(string path)
 {
     return(Directory.GetLastAccessTimeUtc(path));
 }