IVirtualFileSystemGetTimeStamp Method |
Determine the time stamp for a script.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
SyntaxDateTime GetTimeStamp(
string scriptPath
)
Function GetTimeStamp (
scriptPath As String
) As DateTime
DateTime GetTimeStamp(
String^ scriptPath
)
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.
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