modificationTime method

DateTime modificationTime(
  1. Uri url
)
override

Returns the time that the Sass file at url was last modified.

The url comes from a call to canonicalize for this importer.

By default, this returns the current time, indicating that url should be reloaded on every compilation. If implementations override this to provide a more accurate time, Sass will be better able to avoid recompiling it unnecessarily.

If this throws an exception, the exception is ignored and the current time is used as the modification time.

Implementation

DateTime modificationTime(Uri url) =>
    FilesystemImporter.cwd.modificationTime(url);