private void setatime(int atime) {
            int am;
            String unit;
            if (atime > (604800 * 2)) {
                am = atime / 604800;
                unit = "week";
            } else if (atime > 86400) {
                am = atime / 86400;
                unit = "day";
            } else if (atime > 3600) {
                am = atime / 3600;
                unit = "hour";
            } else if (atime > 60) {
                am = atime / 60;
                unit = "minute";
            } else {
                am = atime;
                unit = "second";
            }
            this.atime = Text.render("Last seen: " + am + " " + unit
                    + ((am > 1) ? "s" : "") + " ago");
        }