Converting a date string which is before 1970 into a timestamp in MySQL

后端 未结 8 1687
名媛妹妹
名媛妹妹 2020-12-17 14:51

Not a very good title, so my apologies.

For some reason, (I wasn\'t the person who did it, i digress) we have a table structure where the field type for a date is va

8条回答
  •  囚心锁ツ
    2020-12-17 15:07

    convert these date strings into a unix time stamp

    Traditional Unix timestamps are an unsigned integer count of seconds since 1-Jan-1970 therefore can't represent any date before that.

提交回复
热议问题