79514507

Date: 2025-03-17 12:02:38
Score: 1
Natty:
Report link

Made it work using %X instead for time

timestampformat = '%-m/%-d/%Y, %X.%g %p'

or

CAST(strptime(TimeGeneratedUTC,'%-m/%-d/%Y, %X.%g %p') as TIMESTAMP) TimeGeneratedUTC

Still curious why %-I:%-M:%-S does not work instead of %X:

timestampformat = '%-m/%-d/%Y, %-I:%-M:%-S.%g %p'

(neither in read_csv nor cast)

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user29247426