1. Code:
    var currentlytime = System.DateTime.Now;
    if (!voteOpen) return;
    if (currentlytime > 18f || currentlytime < 24f) {
          OpenVote();
    }
    
    Get a error:
    Code:
     error CS0019: Operator `>' cannot be applied to operands of type `System.DateTime' and `float'
     
  2. Code:
        int currentlytime = System.DateTime.Now.Hour;
        if (!voteOpen) return;
        if (currentlytime > 18f || currentlytime < 24f)
        {
            OpenVote();
        }
    
     
  3. Are you sure you're looking for the real time and not the in-game time?
     
  4. Yeah bro is real not in game, in game is easy:
    using ConVar;

    Env.time > 18 && Env.time < 24
    hehe