|
|
@ -307,6 +307,7 @@ func TestParseTime(t *testing.T) {
|
|
|
|
assert.Equal(t, "3/4/2019 5:5:42", parseTime("43528.2123", "M/D/YYYY h:m:s"))
|
|
|
|
assert.Equal(t, "3/4/2019 5:5:42", parseTime("43528.2123", "M/D/YYYY h:m:s"))
|
|
|
|
assert.Equal(t, "3/4/2019 0:5:42", parseTime("43528.003958333335", "m/d/yyyy h:m:s"))
|
|
|
|
assert.Equal(t, "3/4/2019 0:5:42", parseTime("43528.003958333335", "m/d/yyyy h:m:s"))
|
|
|
|
assert.Equal(t, "3/4/2019 0:05:42", parseTime("43528.003958333335", "M/D/YYYY h:mm:s"))
|
|
|
|
assert.Equal(t, "3/4/2019 0:05:42", parseTime("43528.003958333335", "M/D/YYYY h:mm:s"))
|
|
|
|
|
|
|
|
assert.Equal(t, "3:30:00 PM", parseTime("0.64583333333333337", "h:mm:ss am/pm"))
|
|
|
|
assert.Equal(t, "0:05", parseTime("43528.003958333335", "h:mm"))
|
|
|
|
assert.Equal(t, "0:05", parseTime("43528.003958333335", "h:mm"))
|
|
|
|
assert.Equal(t, "0:0", parseTime("6.9444444444444444E-5", "h:m"))
|
|
|
|
assert.Equal(t, "0:0", parseTime("6.9444444444444444E-5", "h:m"))
|
|
|
|
assert.Equal(t, "0:00", parseTime("6.9444444444444444E-5", "h:mm"))
|
|
|
|
assert.Equal(t, "0:00", parseTime("6.9444444444444444E-5", "h:mm"))
|
|
|
|