Talk TechNet ... Episode 23: Hal Rottenberg on Powershell
i'm having trouble figuring out start time will
be hal rottenberg's appearance on webcast described at
it says
starts: wednesday, april 20, 2011 9:00 am
time zone: (gmt-08:00) pacific time (us & canada)
seems ambiguous me.
# should give local time of event
# note offset should gmt -07:00 (daylight savings)
$date = get-date 'april 20, 2011 9:00 am'
$offset = new-timespan -hours -7
$dtoffset = new-object datetimeoffset $date, $offset
$dtoffset.localdatetime
robert robelo
Windows Server > Windows PowerShell
Comments
Post a Comment