Finding UTC
Richard Gaskin
ambassador at fourthworld.com
Sat Feb 20 10:44:08 EST 2016
Graham Samuel wrote:
> In LCS, I can write a line of code that says something like
>
> put the time
>
> This will of course put the time as perceived by the server where in
> the world my copy of LCS happens to be hosted. Given that this is
> arbitrary from the point of view of a user of the server, it would be
> easier for me if I could show the time as UTC, or what us Brits used
> to call Greenwich Mean Time.
>
> Is there any way of doing this, either within the LC engine, or by
> querying the server parameters, assuming it to be running Apache? Or
> do I have to invoke a service like worldtimeserver.com
> <http://worldtimeserver.com/>?
I believe you should be able to use "the internet date" for that, since
it includes the UTC offset from which you can calculate UTC itself.
> PS: IMHO LiveCode Server should be called ‘LiveCode Server Edition’,
> since the engine isn’t itself a server, it just **runs** on a server,
> AFAIKS. The idea of a server-within-a-server seems confusing to me.
Agreed, it would make it more understandable. Or perhaps even more
specifically, "LiveCode CGI".
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list