- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to convert date into Unix epoch format as I need to insert data into influxdb with historic timestamp.
(Get-Date $StartDate -UFormat '%s').Replace((Get-Culture).NumberFormat.NumberDecimalSeparator, '')
-> I am getting a value of 15 digits.
But I am not able to insert into influxdb because, as per InfluxData | Documentation | Writing Data
date stamp should be in nanoseconds and is 19 digits.
So how can I get datestamp in nanoseconds and is in unix epoch format.