static int daysUntilEndOfYear(long time default now()) { ret ifloor(toDays(parseYMD((year(time)+1) + "/1/1")-time)); }