0

To select birthrate from the time stamp from my table it returns null value. My query is as below in which i want only year From it, which is 1969.

SELECT FROM_UNIXTIME(-8035200, "%Y") AS `birthtitle`
Mohit maru
  • 799
  • 7
  • 15

1 Answers1

0

Unix time cannot be negative.

To solve your problem add 84600 * 3650 to your number (3650 days), then subtract 3650 days from the date.

Ben
  • 33,861
  • 6
  • 71
  • 109