I am trying to convert a string date-time to numeric. However, when I do this, it seems that the time changes slightly:

Code:
clear
set obs 2
gen datestring = "29-Apr-20 12:00 AM"
replace datestring    = "29-Apr-20 12:01 AM" if [_n]==2
generate encdt2 = clock(datestring, "DM20Yhm")
format encdt2  %30.0f
list
format encdt2  %tc
list
format encdt2  %tC
list
The data I have is to the minute (not second or millisecond). So, I'd like the output to have 0 seconds and 0 milliseconds.