selik / xport

Python reader and writer for SAS XPORT data transport files.
MIT License
49 stars 24 forks source link

Datetime format #97

Open DCasoPTS opened 1 year ago

DCasoPTS commented 1 year ago

I'm trying to write a XPT file with some fields in DATETIME22.3 format, but it gives an error every time: "TypeError: must be real number, not str"

In which format should I input the data?

selik commented 1 year ago

I'm going to have trouble debugging this, without an example XPT document that uses that DATETIME22.3 format. I suggest you use a string format instead.

Or, could you tell me more about what that format does? What's the .3 for?