Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had trouble in the past to make any model give me accurate unix epochs for specific dates.

I just went to GPT-4o (via DDG) and asked three questions:

1. Please give me the unix epoch for September 1, 2020 at 1:00 GMT.

> 1598913600

2. Please give me the unix epoch for September 1, 2020 at 1:00 GMT. Before reaching the conclusion of the answer, please output the entire chain of thought, your reasoning, and the maths you're doing, until your arrive at (and output) the result. Then, after you arrive at the result, make an extra effort to continue, and do the analysis backwards (as if you were writing a unit test for the result you achieved), to verify that your result is indeed correct.

> 1598922000

3. Please give me the unix epoch for September 1, 2020 at 1:00 GMT. Then, after you arrive at the result, make an extra effort to continue, and do the analysis backwards (as if you were writing a unit test for the result you achieved), to verify that your result is indeed correct.

> 1598913600



When I give it that same prompt, it writes a python program and then executes it to find the answer: https://chatgpt.com/share/66e35a15-602c-8011-a2cb-0a83be35b8...


No need for llms to do that

ruby -r time -e 'puts Time.parse("2020-09-01 01:00:00 +00:00").to_i'





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: