Jay Taylor's notes
back to listing indexCreating a DateTime object with a specific UTC DateTime in PowerShell
[web search]
Original source (stackoverflow.com)
Clipped on: 2016-11-17
I'm trying to create a I tried:
but I get this output:
It's a few hours off. Where's my lapse in understanding? |
|||
The Proof:
|
|||
|
|||||||||||||
|
This is how it works in .NET, right? PowerShell just calls the ToUniversalTime method. From http://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime.aspx
|
|||
Your Answer
community wiki
Not the answer you're looking for? Browse other questions tagged datetime powershell utc or ask your own question.
asked |
4 years ago |
viewed |
30062 times |
active |
Upcoming Events
Blog
Featured on Meta
Get the weekly newsletter! In it, you'll get:
- The week's top questions and answers
- Important community announcements
- Questions that need answers
see an example newsletter
Related
Hot Network Questions
- Could California Ratify the Paris Agreement?
- Why does Ubuntu 16.04 installation create an extended partition besides the swap?
- Why do solar planes have many small propellers instead of fewer large ones?
- Can I play Pokémon Sun and Moon purchased in another country?
- Can I brine meat after cooking it?
about us
tour
help
blog
chat
data
legal
privacy policy
work here
advertising info
mobile
contact us
feedback
Technology | Life / Arts | Culture / Recreation | Science | Other | ||||||
---|---|---|---|---|---|---|---|---|---|---|
site design / logo © 2016 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0
with attribution required
rev 2016.11.17.4214