<div dir="ltr"><div>Several different people have made them. I grabbed V7 date and added</div><div>the canonical hack to have years < 70 be 20xx and built it on my Venix</div><div>box. I've not done an extensive audit, but it's the only thing I've noticed.<br></div><div><br></div><div>Warner</div><div><br></div><div>P.S. It's short:</div><div><br></div><div>commit 25485e099491fd1ae867c26043a798e47f7983ad<br>Author: Warner Losh <<a href="mailto:imp@freebsd.org">imp@freebsd.org</a>><br>Date:   Thu Nov 15 23:51:59 2018 -0700<br><br>    Apply Y2K fix to date<br>    <br>    Treat all two digit dates < 70 as 20xx and >= 70 as 19xx.<br><br>diff --git a/src/cmd/date.c b/src/cmd/date.c<br>index a005765..643f7e7 100644<br>--- a/src/cmd/date.c<br>+++ b/src/cmd/date.c<br>@@ -133,7 +133,10 @@ gtime()<br>        if (hour<0 || hour>23)<br>                return(1);<br>        timbuf = 0;<br>-       year += 1900;<br>+       if (year < 70)<br>+               year += 2000;<br>+       else<br>+               year += 1900;<br>        for(i=1970; i<year; i++)<br>                timbuf += dysize(i);<br>        /* Leap year */<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 16, 2023 at 7:14 AM KenUnix <<a href="mailto:ken.unix.guy@gmail.com">ken.unix.guy@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I was wondering if there are any fixes for Unix V7 to</div><div>use years beyond 2000?<br></div><div><br>-- <br><div dir="ltr"><div dir="ltr"><div></div><div>WWL 📚</div><div><br></div><div><br></div></div></div></div></div>
</blockquote></div>