Language Guide

CHAPTER 6
Expressions
Operations 181
To express a time difference in more convenient form, divide the number of
seconds by the appropriate constant:
31449600 / years
--result: 1
151200 / days
--result: 1.75
To get an integral number of hours, days, and so on, use the div operator:
151200 div days
--result: 1
To get the difference, in seconds, between the current time and Greenwich
mean time, use the scripting addition command Time to GMT. For example, if
you are in Cupertino, California, and your computer is set to Pacific Standard
Time, Time to GMT produces this result:
time to GMT
--result: -28800
For more information about the Time to GMT command, see the AppleScript
Scripting Additions Guide.