Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

209 B
Raw Blame
namespace API.Helpers;

public static class NumberHelper
{
    public static bool IsValidMonth(int number) => number is > 0 and <= 12;
    public static bool IsValidYear(int number) => number is >= 1000;
}