Sections B.1 and B.2 respectively show the source code of the PERL programs that were used to convert login information obtained by UNIX's last command into the integer timestamps for relations R and Q which were used in chapter 10.