freelancer-sdk-python icon indicating copy to clipboard operation
freelancer-sdk-python copied to clipboard

"from_time" and "to_time" format

Open alijafari96 opened this issue 3 years ago • 1 comments

Hi, I can't understand the time format used for the values of "from-time" and "to-time" parameters. Could anyone explain how I can convert date and time to the proper format? What's the logic behind the number like 1481179011?!

Thanks for your help.

alijafari96 avatar Aug 24 '22 14:08 alijafari96

Seems it shows time since the epoch (midnight 1 January 1970 UTC) in seconds! You can use round(time.time()) in python after importing time.

alijafari96 avatar Aug 24 '22 15:08 alijafari96