Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:24:21+00:00 2026-06-17T19:24:21+00:00

Hello What time is GOOGLECLOCK() in Spreadsheets? I know, from the documentation, that GoogleClock

  • 0

Hello What time is GOOGLECLOCK() in Spreadsheets?

I know, from the documentation, that GoogleClock “Returns the current date and time according to your computer system” (quote).

But what about when the spreadsheet is opened client side by a time-driven trigger? What time will GoogleClock() be?

If anyone has any ideas, please kindly share.
Many thanks for looking.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:24:22+00:00Added an answer on June 17, 2026 at 7:24 pm

    Quick and easy to test. This will illustrate that the documentation is confusing, and likely wrong. (But it’s on the Internet, so it must be true!)

    1. Set the formula in cell A1 to GoogleClock().

    2. Enter test script. This just reads the value in A1, and writes it to A2.

    3. Set a time based trigger to fire once, at a known time.

    4. Close your spreadsheet, leaving only the trigger to use it.

    5. Go back to your spreadsheet after the trigger has run, and check the results.

    After it fires, you’ll see that A2 = A1, at least until A1 changes as it does each minute. I think that the documentation might mean that the time will be displayed according to the timezone and locale of your computer; but it isn’t reading the time from your computer. So the actual source of the clock is the same as it is for the Today() function; the server it’s executing on.

    function testGoogleClock () {
      var curGClock = SpreadsheetApp.getActiveSheet().getRange("A1").getValue();
      SpreadsheetApp.getActiveSheet().getRange("A2").setValue(curGClock);
    }
    

    As a further experiment, change the time on your PC; make it 10 minutes off, say. Look at your spreadsheet, and watch for GoogleClock() to tick. It keeps network time, regardless of what your PC is set to.

    Next, change your PC’s time zone. Check GoogleClock(). You’ll find it doesn’t match the time zone change… still keeps network time, regardless of what your PC is set to.

    What about the spreadsheet settings? Change those to be in a different time zone, and you’ll find that GoogleClock() matches it.

    The docs should say..

    Returns the current date and time according to the computer system.

    Or, to be consistent with the documentation for Now()…

    Returns the computer system time and date. Updates automatically each minute on the minute (unlike the NOW function).

    PS: fix your time settings after these experiments!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello and thanks for your time, I am creating an application that moves video
Hello I need to remove dots and hyphens from both variables time and date.
Hello all and thanks for your time. I would like to know How I
Hello in my database date / time are in this format 2010-06-01T18:20:25+0000 I'd like
Hello i want to send to a MySQL data base a date and time
Hello and thanks for your time. Consider the following scaled down example of a
Hello all and thanks for your time reading this. I need to verify certificates
Hello all and thanks for your time. I believe I have a simple question.
Hello everybody and thanks for your time. I'm developing some kind of monitoring application
hello i was using my long polling code from a long time it was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.