Skip to content

Commit f5279ab

Browse files
committed
Added File_SetCreationTimeUtc article
1 parent c799e3c commit f5279ab

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File_SetCreationTimeUtc
2+
3+
`File_SetCreationTimeUtc` sets the date and time, in coordinated universal time (UTC), that the file was created.
4+
5+
```csharp
6+
File_SetCreationTimeUtc
7+
@path NVARCHAR (MAX),
8+
@creationTime DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file or directory for which to obtain creation date and time information.
14+
- **creationTime**: A DateTime containing the value to set for the creation date and time of path. This value is expressed in UTC time.
15+
16+
## Example
17+
18+
```csharp
19+
EXEC File_SetCreationTimeUtc @path = 'C:\destination', @creationTime = '2018-12-05'
20+
```
21+

docs2/pages/documentations/file/file.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ Provides methods for the creation, copying, deletion, moving, and opening of a s
2121
| [File_ReadAllText(path)](/file-move) | Opens a text file, reads and returns all the text in the file, and then closes the file. | [Try it]()|
2222
| [File_Replace(sourceFileName, destFileName, destBackupFileName, ignoreMetadataErrors)](/file-replace) | Replaces the contents of a specified file with the contents of another file, deleting the original file, and creating a backup of the replaced file and optionally ignores merge errors. | [Try it]()|
2323
| [File_SetCreationTime(path, creationTime)](/file-set-creation-time) | Sets the date and time the file was created. | [Try it]()|
24+
| [File_SetCreationTimeUtc(path, creationTime)](/file-set-creation-time-utc) | Sets the date and time, in coordinated universal time (UTC), that the file was created. | [Try it]()|

0 commit comments

Comments
 (0)