< Back
Convert-LocalToUtc
Post
NAME Convert-LocalToUtc
SYNOPSIS
Converts the local system time to UTC time
SYNTAX
Convert-LocalToUtc [[-Time] <DateTime>] [[-TimeZone] <String>] [[-AddDays] <Int32>] [[-AddHours] <Int32>]
[[-AddMinutes] <Int32>] [<CommonParameters>]
DESCRIPTION
Converts the current local system time to UTC time, using the local system's timezone.
To override the local time, enter an ISO 8601 string (ex: "2017-08-01 09:20:00") as a parameter.
To override the Time Zone use any of the strings listed in https://msdn.microsoft.com/en-us/library/cc749073.aspx
PARAMETERS
-Time <DateTime>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-TimeZone <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AddDays <Int32>
Required? false
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-AddHours <Int32>
Required? false
Position? 4
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-AddMinutes <Int32>
Required? false
Position? 5
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Convert-LocalToUtc -AddHours 5
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Convert-LocalToUtc -TimeZone "Pacific Standard Time"
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Convert-TimeZone; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Convert-TimeZone [[-Time] <datetime>] [[-ToTimeZone] <string>] [[-FromTimeZone] <string>]
[<CommonParameters>]
ModuleName : LocalToUtc
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Convert-TimeZone
Category : Function
Component :
Role :
Functionality :
SYNOPSIS
Converts the local system time to UTC time
SYNTAX
Convert-LocalToUtc [[-Time] <DateTime>] [[-TimeZone] <String>] [[-AddDays] <Int32>] [[-AddHours] <Int32>]
[[-AddMinutes] <Int32>] [<CommonParameters>]
DESCRIPTION
Converts the current local system time to UTC time, using the local system's timezone.
To override the local time, enter an ISO 8601 string (ex: "2017-08-01 09:20:00") as a parameter.
To override the Time Zone use any of the strings listed in https://msdn.microsoft.com/en-us/library/cc749073.aspx
PARAMETERS
-Time <DateTime>
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-TimeZone <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-AddDays <Int32>
Required? false
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-AddHours <Int32>
Required? false
Position? 4
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-AddMinutes <Int32>
Required? false
Position? 5
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Convert-LocalToUtc -AddHours 5
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Convert-LocalToUtc -TimeZone "Pacific Standard Time"
RELATED LINKS
CommonParameters : True
WorkflowCommonParameters : False
details : @{name=Convert-TimeZone; noun=; verb=}
Syntax : @{syntaxItem=System.Object[]}
parameters : @{parameter=System.Object[]}
inputTypes : @{inputType=}
returnValues : @{returnValue=}
aliases : None
remarks : None
alertSet :
description :
examples :
Synopsis :
Convert-TimeZone [[-Time] <datetime>] [[-ToTimeZone] <string>] [[-FromTimeZone] <string>]
[<CommonParameters>]
ModuleName : LocalToUtc
nonTerminatingErrors :
xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10
xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10
xmlns:maml : http://schemas.microsoft.com/maml/2004/10
Name : Convert-TimeZone
Category : Function
Component :
Role :
Functionality :