summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldate.h
diff options
context:
space:
mode:
authorKartic Krishnamurthy <drunkensufi@lindenlab.com>2007-07-20 23:11:04 +0000
committerKartic Krishnamurthy <drunkensufi@lindenlab.com>2007-07-20 23:11:04 +0000
commit45281046c5cf2d71b53c9f6c3d8d9ba74d29b33d (patch)
treeb709aec899afbfc5f77d3beebcf2eedfb4a560ac /indra/llcommon/lldate.h
parentdd6a0467ed9c151a819626cf811553e4a8880e84 (diff)
Fixed cache invalidation in simulator.cpp, llsd.php, added RFC 1123 compliant date format, and unit test for the new date function
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