I can use following to append a date to a text:
"Foo {0:G} Foo" -f (date) #returns "Foo 2009-12-07 15:34:16 Foo"
But I want the time in Unix format.
I can get it by date -UFormat %s
, but can I use the same syntax?
When I use -UFormat %s
I get 1260199855,65625, how do I remove the decimal?