Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Datediff problem between windows and Linux machine ?

$
0
0
Hello,

I need to create a script using autoit on a windows computer to execute it on a remote linux server using putty (or plink) and this script needs to generate a string corresponding to the actuel date/time in the linux format (equivalent to the linux command : `/bin/date +%s`).

My problem is that it seems to generate it with 1 hour more than it should be..

maybe did i missed something ? here is the code i used :

[ autoit ]      
$UnixDateSince1970 = _DateDiff( 's',"1970/01/01 00:00:00",_NowCalc())

Any idea of what i coul have missed ?

Nb : actually, it's 2013/02/22 01:20PM in France, and the result string is : 1361539258

thanks

Florent

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>