MV [Solved] Vlue's Game Time MV, how to check for the day (of the week)??

Hello, I'm having a hard time figuring this out, I've been stubbornly trying different things for the last two days, but I've finally given up and now I'm asking for help.
I'm using Vlue's Game Time plugin (http://daimonioustails.weebly.com/game-time-mv.html), and while I am trying to set up some conditionals based on the day of the week, I can't for the life of me figure out what I'm supposed to write in the script...

For example, I'm trying to make an event happen (npc appears) exclusively on Tuesdays.

There are no commands listed on the plugin (that I can find) to check for the day of the week (or day number, for that matter), despite the web page for the plugin saying that it's possible? Help would be much appreciated 😩
Hi there! ^^

Taking a quick look into the plugin file, it seems that you can get anything with this function:
JavaScript:
Current_Time.prototype.getTime = function(string) {
    if(string == "second") {return this.sec;}
    if(string == "minute") {return this.min;}
    if(string == "hour")   {return this.hour;}
    if(string == "day")       {return this.day;}
    if(string == "dayweek"){return this.dayweek;}
    if(string == "dayyear"){return this.dayyear();}
    if(string == "month")  {return this.month;}
    if(string == "year")   {return this.year;}
    throw new Error(TextManager.getErrorDetails() + "Incorrect time value (" + string + ") called for: getTime")
}

So, $gameTime.currentTime.getTime("string") will return the data you want.

Just replace "string" with whatever data you want to get(in this case "dayweek").

Didn't test it ^^''
Hi there! ^^

Taking a quick look into the plugin file, it seems that you can get anything with this function:
JavaScript:
Current_Time.prototype.getTime = function(string) {
    if(string == "second") {return this.sec;}
    if(string == "minute") {return this.min;}
    if(string == "hour")   {return this.hour;}
    if(string == "day")       {return this.day;}
    if(string == "dayweek"){return this.dayweek;}
    if(string == "dayyear"){return this.dayyear();}
    if(string == "month")  {return this.month;}
    if(string == "year")   {return this.year;}
    throw new Error(TextManager.getErrorDetails() + "Incorrect time value (" + string + ") called for: getTime")
}

So, $gameTime.currentTime.getTime("string") will return the data you want.

Just replace "string" with whatever data you want to get(in this case "dayweek").

Didn't test it ^^''
Omg that works perfectly, thank you so much!! 😍
I still have a lot to learn about Javascript and how it works, but I'll get there haha. Thank you for your help!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-vlues-game-time-mv-how-to-check-for-the-day-of-the-week.133650/