I am currently porting code from go to c# and came across this (simplified) piece of code.
I do know that it converts a given string 171228175744.085
using a given format 060102150405
.
The official docs only have examples using common formats like 2017-Feb-1
, not this format (a possible timestamp?)
I do know that this will result in the time beeing 2017-12-28 17:57:44.085 +0000 UTC
, but I do not have a clue how, because I have no information what the string 171228175744.085
and layout represent. I do know that some of this information is GPS related. So, my question is: Does anyone know how to do this in c#?
package main
import (
"fmt"
"time"
)
func main() {
t, err := time.Parse("060102150405", "171228175744.085")
if err == nil{
fmt.Println(t)
}
}