#1AFreeNew

ChatGPT Action : GetCurrentTime

GPTs Action Info

  • OperationId: GetCurrentTime
  • Name: Get current time
  • Description: Get the current UTC time and the time in the major time zones, which can be used for calculations related to time, date, and other scenarios.

You can use the following statement in your GPT Prompt to explicitly indicate the use of this action:

Use the Gapier Action "GetCurrentTime" to do something...

GetCurrentTime

Use case

How to let ChatGPT know the current time?

The ChatGPT model itself does not know the current actual time. This Action is mainly used to solve the problem of not being able to obtain the real-world time in GPT. When there are keywords or intentions related to time in your prompt, this Action will be triggered automatically and obtain the current time in the main time zone.

For example:

  • using words like "today", "tomorrow", "yesterday", "last month", etc.
  • asking "how old is XXX this year" when the current time is needed for calculation
  • doing something at 16:00 in New York time. Such cases require knowledge of time zones.

If you need precise time due to time zone differences, you need to tell Action the time zone you want.

The use case for this action

Case 1 :

I plan to give our office staff in Singapore a day off the day after tomorrow.
Can you help me write a notice for the day off?

Case 2 :

How long until Christmas this year?

Case 3 :

How old is Satya Nadella, the CEO of Microsoft,
and how many months has he been managing Microsoft?

Frequently asked questions

  • How can ChatGPT be informed of the current time in a specific time zone?

    You just need to integrate Gapier's Action, and then tell GPT which time zone's current time you need.

  • Can I use this Action for free?

    Certainly, you can use it at least 20 times per day.

  • Let me know what data this Action returns.

    Similar to this:

    "data": {
          "utcTime": "2023-12-18T12:23:17Z",
          "timeZones": [
            {
              "timeZone": "Africa/Abidjan",
              "localizedTime": "Monday, December 18, 2023 12:23 PM"
            },
            {
              "timeZone": "Africa/Accra",
              "localizedTime": "Monday, December 18, 2023 12:23 PM"
            },
    ...
    

Empty

How to integrate this Action into your GPT?

  1. Register a Gapier account to get a free Action URL and Key.
  2. When creating a GPT in ChatGPT, scroll to Actions and click the "Create New Action" button.
  3. Choose "API Key" for Authentication and enter the Key obtained from Gapier.
  4. Click "Import from URL" and enter the Action URL obtained from Gapier.
  5. In the Available actions list, you will see all the available Gapier Actions. Click "test" to perform a test.
  6. Copy the Privacy policy from Gapier and paste it into the "Privacy policy" input box if your GPT needs to share it with others.

There is a tutorial with text and images here, you may need: How to integrate Gapier with GPTs in 60 seconds?

More information? Visit ChatGPT to ask the demo GPT

For more details about this action, you can visit the following example GPT:

[Example GPTs]

This GPT is a demo and also serves as an assistant for creating GPT. You can ask it for specific instructions on using a particular GPT. You can also share your requirements, and it will assist you in understanding how to accomplish them using Gapier's Action API. Give it a try!