summaryrefslogtreecommitdiff
path: root/t/lib/test_account.pl
diff options
context:
space:
mode:
Diffstat (limited to 't/lib/test_account.pl')
-rw-r--r--t/lib/test_account.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/lib/test_account.pl b/t/lib/test_account.pl
index 38b282b..0b06973 100644
--- a/t/lib/test_account.pl
+++ b/t/lib/test_account.pl
@@ -28,4 +28,9 @@ sub expiration_date {
return sprintf("%02d/%02d", $month, $year);
}
+sub tomorrow {
+ my($day, $month, $year) = (localtime(time+86400))[3..5];
+ return sprintf("%04d-%02d-%02d", $year+1900, ++$month, $day);
+}
+
1;