VirtualFileSystemGetTimeStamp Method |
Determine the time stamp for a script.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxpublic DateTime GetTimeStamp(
string scriptPath
)
Public Function GetTimeStamp (
scriptPath As String
) As DateTime
public:
virtual DateTime GetTimeStamp(
String^ scriptPath
) sealed
Parameters
- scriptPath String
-
The path of the script which is always in canonical form as returned by the Combine method.
Return Value
DateTime
The script's time stamp.
Implements
IVirtualFileSystemGetTimeStamp(String)
Remarks
Implement this method to get the script's time stamp.
A time stamp indicates the last time the script was changed.
This time stamp should be in UTC.
Example
IVirtualFileSystem implementation which uses the normal file system.
public DateTime GetTimeStamp(string scriptPath)
{
return File.GetLastWriteTimeUtc(scriptPath);
}
Function GetTimeStamp(ByVal scriptPath As String) As Date
Return File.GetLastWriteTimeUtc(scriptPath)
End Function
See Also