Skip to content

Commit d83584b

Browse files
committed
Added File_GetCreationTimeUtc
1 parent 6f9d43f commit d83584b

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

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

docs2/pages/documentations/file/file.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Provides methods for the creation, copying, deletion, moving, and opening of a s
1010
| [File_Decrypt(path)](/file-decrypt) | Decrypts a file that was encrypted by the current account using the [File_Encrypt](/file_encrypt) procedure. | [Try it]()|
1111
| [File_Delete(path)](/file-delete) | Deletes the specified file. | [Try it]()|
1212
| [File_Encrypt(path)](/file-encrypt) | Encrypts a file so that only the account used to encrypt the file can decrypt it. | [Try it]()|
13-
| [File_GetCreationTime](/file-get-creation-time) | Returns the creation date and time of the specified file or directory. | [Try it]()|
13+
| [File_GetCreationTime](/file-get-creation-time) | Returns the creation date and time of the specified file or directory. | [Try it]()|
14+
| [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]()|

0 commit comments

Comments
 (0)