DateTime's functions in PowerShell -


i write application in powershell, , want convert seconds date.

in c# there addseconds function adds seconds date. function in powershell similar performance?

well, since .net framework right @ fingertips, can do

$d1 = [system.datetime]::now 

and then

$d2 = $d1.addseconds(30) 

get-date appears wrapper datetime object , following work well:

$d3 = get-date 23.10.2010 -format dd.mm.yyyy 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -