如何更改日期格式并将其与时间戳分开?

时间:2019-02-18 19:39:41

标签: r

我有日期格式为“ 2009-12-31T09:57:29.720Z”的数据。我想将时间戳与上述日期分开。并且还想为分隔的时间戳创建一个不同的列。我该怎么办?

我尝试了以下代码:

lAB_tar[:,:,0] = (lAB_img[:,:,0] - mean[0])/std[0] * std_tar[0] + mean_tar[0]
lAB_tar[:,:,1] = (lAB_img[:,:,1] - mean[1])/std[1] * std_tar[1] + mean_tar[1]
lAB_tar[:,:,2] = (lAB_img[:,:,2] - mean[2])/std[2] * std_tar[2] + mean_tar[2]

但是在这种情况下,我不确定如何最后删除“ .720”和“ z”。

0 个答案:

没有答案