summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldate.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/lldate.h')
-rw-r--r--indra/llcommon/lldate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llcommon/lldate.h b/indra/llcommon/lldate.h
index 854613ad0b..6ebc8ebbe7 100644
--- a/indra/llcommon/lldate.h
+++ b/indra/llcommon/lldate.h
@@ -57,7 +57,9 @@ public:
* @return A string representation of the date.
*/
std::string asString() const;
+ std::string asRFC1123() const;
void toStream(std::ostream&) const;
+ void toHTTPDateStream(std::ostream&) const;
/**
* @brief Set the date from an ISO-8601 string.
*
@@ -99,4 +101,8 @@ std::ostream& operator<<(std::ostream& s, const LLDate& date);
std::istream& operator>>(std::istream& s, LLDate& date);
+const static std::string weekdays[] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
+
+const static std::string months[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
+
#endif // LL_LLDATE_H