What is so hard to understand? Your local $ctime is simply offset from $gmt by $timezone, plus or minus.Your timezone is GMT +2, so you would be subtracting 7200 seconds (2 hours) from your local $ctime to derive $gmt.