diff modules/utils.js @ 322:3940ef5aa170

let users choose a period of time from which to see messages in the river view
author Myk Melez <myk@mozilla.org>
date Tue, 14 Oct 2008 11:34:46 -0700
parents b09b7f436e1a
children 3a8dfaf1ac31
line wrap: on
line diff
--- a/modules/utils.js	Sun Oct 12 21:30:14 2008 -0700
+++ b/modules/utils.js	Tue Oct 14 11:34:46 2008 -0700
@@ -126,6 +126,11 @@
     get name() { return SnowlUtils.days[this.epoch.getDay()] }
   },
 
+  twentyNineDaysAgo: {
+    get epoch() { return new Date(SnowlUtils.today - (msInDay * 29)) },
+    get name() { return "Twenty Nine Days Ago" }
+  },
+
   /**
    * Formats a date for human consumption using the date formatting service
    * for locale-specific formatting along with some additional smarts for more