import arrow
print arrow.utcnow()
print arrow.utcnow().timestamp
print arrow.utcnow().to('Asia/Kolkata')
print arrow.utcnow().to('Asia/Kolkata').timestamp
I need the timestamp (in int) of 'Asia/Kolkata' timezone, which is +5:30 from utc.
arrow.utcnow()
and arrow.utcnow().to('Asia/Kolkata')
are coming out to be different and the second one is +5:30 the first, as expected.
However, arrow.utcnow().timestamp
and arrow.utcnow().to('Asia/Kolkata').timestamp
are still coming out to be same.
I am sure I am missing something very basic here, but can anyone explain this?