Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
那`si需要从新日期(由用户输入)获取分钟和小时,添加当前年份,mm和d。与当前日期比较。
你用什么写代码?通常,您可以将输入的日期转换为 UNIX 时间(自 1970-01-01 以来的秒数)并以 UNIX 时间获取当前时间,然后将它们作为整数进行比较。