I'm creating in-memory local cache of a network filesystem.
I want every directory/file to have LastDownloadedTime
attribute, and then compare it with current time to decide whether the directory/file is too old to be used from cache.
But I'm uncertain whether DateTime.Now()
is what I need. What happens if the user changes system time? How can simestamps suitable for my task be obtained in .NET?