I have a integer number 50 which is saved in my database as duration
and I want to convert it into a datetime.
I have used Time.at(50) and it gives the result
1970-01-01 05:30:50 +0530
At the date place I want zero value.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can not have a zero in the date portions; if you could it would not be a date anymore.
You must to have some start point, and this start point was settled to 1970-01-01 00:00:00.000 UTC.
The history.