Skip to content

Commit 93b930d

Browse files
committed
Added File_GetLastAccessTime, File_GetLastAccessTimeUtc, File_GetLastWriteTime and File_GetLastWriteTimeUtc
1 parent d83584b commit 93b930d

5 files changed

Lines changed: 100 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# File_GetLastAccessTimeUtc
2+
3+
`File_GetLastAccessTimeUtc` returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last accessed.
4+
5+
```csharp
6+
File_GetLastAccessTimeUtc (
7+
@path NVARCHAR (MAX))
8+
RETURNS DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file or directory for which to obtain access date and time information.
14+
15+
## Returns
16+
17+
A DateTime object set to the date and time that the specified file or directory was last accessed. This value is expressed in UTC time.
18+
19+
## Example
20+
21+
```csharp
22+
SELECT SQLNET::File_GetLastAccessTimeUtc('C:\Temp\MyTest.txt')
23+
```
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# File_GetLastAccessTime
2+
3+
`File_GetLastAccessTime` returns the date and time the specified file or directory was last accessed.
4+
5+
```csharp
6+
File_GetLastAccessTime (
7+
@path NVARCHAR (MAX))
8+
RETURNS DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file or directory for which to obtain access date and time information.
14+
15+
## Returns
16+
17+
A DateTime object set to the date and time that the specified file or directory was last accessed. This value is expressed in local time.
18+
19+
## Example
20+
21+
```csharp
22+
SELECT SQLNET::File_GetLastAccessTime('C:\Temp\MyTest.txt')
23+
```
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# File_GetLastWriteTimeUtc
2+
3+
`File_GetLastWriteTimeUtc` returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last written to.
4+
5+
```csharp
6+
File_GetLastWriteTimeUtc (
7+
@path NVARCHAR (MAX))
8+
RETURNS DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file or directory for which to obtain write date and time information.
14+
15+
## Returns
16+
17+
A DateTime object set to the date and time that the specified file or directory was last written to. This value is expressed in UTC time.
18+
19+
## Example
20+
21+
```csharp
22+
SELECT SQLNET::File_GetLastWriteTimeUtc('C:\Temp\MyTest.txt')
23+
```
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# File_GetLastWriteTime
2+
3+
`File_GetLastWriteTime` returns the date and time the specified file or directory was last written to.
4+
5+
```csharp
6+
File_GetLastWriteTime (
7+
@path NVARCHAR (MAX))
8+
RETURNS DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file or directory for which to obtain write date and time information.
14+
15+
## Returns
16+
17+
A DateTime object set to the date and time that the specified file or directory was last written to. This value is expressed in local time.
18+
19+
## Example
20+
21+
```csharp
22+
SELECT SQLNET::File_GetLastWriteTime('C:\Temp\MyTest.txt')
23+
```
24+

docs2/pages/documentations/file/file.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ Provides methods for the creation, copying, deletion, moving, and opening of a s
1212
| [File_Encrypt(path)](/file-encrypt) | Encrypts a file so that only the account used to encrypt the file can decrypt it. | [Try it]()|
1313
| [File_GetCreationTime](/file-get-creation-time) | Returns the creation date and time of the specified file or directory. | [Try it]()|
1414
| [File_GetCreationTimeUtc](/file-get-creation-time-utc) | Returns the creation date and time, in coordinated universal time (UTC), of the specified file or directory. | [Try it]()|
15+
| [File_GetLastAccessTime](/file-get-last-access-time) | Returns the date and time the specified file or directory was last accessed. | [Try it]()|
16+
| [File_GetLastAccessTimeUtc](/file-get-last-access-time-utc) | Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last accessed. | [Try it]()|
17+
| [File_GetLastWriteTime](/file-get-last-write-time) | Returns the date and time the specified file or directory was last written to. | [Try it]()|
18+
| [File_GetLastWriteTimeUtc](/file-get-last-write-time-utc) | Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last written to. | [Try it]()|

0 commit comments

Comments
 (0)