-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ce78c2
commit cede9f6
Showing
13 changed files
with
1,341 additions
and
138 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
external help file: PSScriptTools-help.xml | ||
Module Name: PSScriptTools | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# ConvertFrom-UTCTime | ||
|
||
## SYNOPSIS | ||
|
||
Convert a datetime value from universal | ||
|
||
## SYNTAX | ||
|
||
```yaml | ||
ConvertFrom-UTCTime [-DateTime] <DateTime> [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Use this command to convert a universal datetime object into local time. | ||
|
||
This command was introduced in v2.3.0. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
PS C:\> ConvertFrom-UTCTime "18:00" | ||
Monday, March 4, 2019 1:00:00 PM | ||
``` | ||
|
||
Covert the time 18:00 for the current day from universal time to local time. This result reflects Eastern Time which on this date is UTC-5. | ||
|
||
## PARAMETERS | ||
|
||
### -DateTime | ||
|
||
Enter a Universal Datetime value | ||
|
||
```yaml | ||
Type: DateTime | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: True (ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. | ||
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### System.DateTime | ||
## OUTPUTS | ||
### System.DateTime | ||
## NOTES | ||
Learn more about PowerShell: | ||
http://jdhitsolutions.com/blog/essential-powershell-resources/ | ||
## RELATED LINKS | ||
[ConvertTo-UTCTime]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
external help file: PSScriptTools-help.xml | ||
Module Name: PSScriptTools | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# ConvertTo-UTCTime | ||
|
||
## SYNOPSIS | ||
|
||
Convert a local datetime to universal time. | ||
|
||
## SYNTAX | ||
|
||
```yaml | ||
ConvertTo-UTCTime [[-DateTime] <DateTime>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Convert a local datetime to universal time. The default is now but you can specify a datetime value. | ||
|
||
This command was introduced in v2.3.0. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
PS S:\PSScriptTools> get-date | ||
Monday, March 4, 2019 12:51:47 PM | ||
PS S:\PSScriptTools> ConvertTo-UTCTime | ||
Monday, March 4, 2019 5:51:49 PM | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -DateTime | ||
+ | ||
Enter a Datetime value | ||
|
||
```yaml | ||
Type: DateTime | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: 0 | ||
Default value: now | ||
Accept pipeline input: True (ByValue) | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. | ||
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### System.DateTime | ||
## OUTPUTS | ||
### System.DateTime | ||
## NOTES | ||
Learn more about PowerShell: | ||
http://jdhitsolutions.com/blog/essential-powershell-resources/ | ||
## RELATED LINKS | ||
[ConvertFrom-UTCTime]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.