Jump to content

Help in API


Jesus Prime
 Share

Recommended Posts

I’m following the politics and war api tutorial and I have got to the part for the conditional formatting however the color palette doesn’t seem to be working for the date? Is this due to the it being not a value as it is represented as X/X/XXXX 00+00?

by devvy

Link to comment
Share on other sites

  • Administrators

I will share your question there, but I would recommend joining this Discord server for assistance with the API: https://discord.gg/vdbSNHGdWJ

  • Upvote 1

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

I think this is more of an issue you're having with conditional formatting in Sheets rather than an issue with the API. With that being said... if I have a bunch of datetimes in Column B, my conditional formatting for column B would be something like this:

Format cells if... Custom formula is

=NOW()-TIME(2,0,0)<B1

 

This will add the formatting style if the datetime was within the last 2 hours. For more information, see the TIME and DATE function docs. I hope this small example is enough to get you on the right track.

  • Thanks 1

Federation of Knox

Enlightened of Chaos, Event Horizon

QA Team and API Team

Link to comment
Share on other sites

15 hours ago, Jacob Knox said:

I think this is more of an issue you're having with conditional formatting in Sheets rather than an issue with the API. With that being said... if I have a bunch of datetimes in Column B, my conditional formatting for column B would be something like this:

Format cells if... Custom formula is

=NOW()-TIME(2,0,0)<B1

 

This will add the formatting style if the datetime was within the last 2 hours. For more information, see the TIME and DATE function docs. I hope this small example is enough to get you on the right track.

Thanks! It’s now working. I also have some other ideas with conditions that I want to test. Although I might need some more help to create a discord bot 😅 so I’ll ask around on the discord a bit.

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.