Update create current unix time

update method to create current unix time to be windows compatible

fix issue #640
Merge pull request #641 from wozz/640

Update create current unix time