From 305ec89a70bf88fce8f5edda15047182bc56682b Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 23 Feb 2010 16:33:43 -0800 Subject: Added ageFromDateISO() for YYYY-MM-DD dates --- indra/newview/lldateutil.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/lldateutil.h') diff --git a/indra/newview/lldateutil.h b/indra/newview/lldateutil.h index 041be07f12..d077f4eefb 100644 --- a/indra/newview/lldateutil.h +++ b/indra/newview/lldateutil.h @@ -44,6 +44,12 @@ namespace LLDateUtil // Calls the above with LLDate::now() std::string ageFromDate(const std::string& date_string); + + // As above, for YYYY-MM-DD dates + std::string ageFromDateISO(const std::string& date_string, const LLDate& now); + + // Calls the above with LLDate::now() + std::string ageFromDateISO(const std::string& date_string); } #endif -- cgit v1.2.3 From 6d1e44b0338dd2815f605a5ba6e6528932cf3ebc Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 20 Apr 2010 14:52:09 -0700 Subject: Avatar picker requests are routed via sim capability --- indra/newview/lldateutil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra/newview/lldateutil.h') diff --git a/indra/newview/lldateutil.h b/indra/newview/lldateutil.h index d077f4eefb..9c62241fe6 100644 --- a/indra/newview/lldateutil.h +++ b/indra/newview/lldateutil.h @@ -50,6 +50,8 @@ namespace LLDateUtil // Calls the above with LLDate::now() std::string ageFromDateISO(const std::string& date_string); + + std::string ageFromDate(S32 year, S32 month, S32 day); } #endif -- cgit v1.2.3 From 257c3ed2a3747256500f704f6e06e7631af3c08e Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 20 Apr 2010 16:06:25 -0700 Subject: LLDateUtil::ageFromDate() now takes more sensible parameters This and last reviewed with Kelly --- indra/newview/lldateutil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/lldateutil.h') diff --git a/indra/newview/lldateutil.h b/indra/newview/lldateutil.h index 9c62241fe6..d72d8d1ed4 100644 --- a/indra/newview/lldateutil.h +++ b/indra/newview/lldateutil.h @@ -51,7 +51,7 @@ namespace LLDateUtil // Calls the above with LLDate::now() std::string ageFromDateISO(const std::string& date_string); - std::string ageFromDate(S32 year, S32 month, S32 day); + std::string ageFromDate(S32 born_year, S32 born_month, S32 born_day, const LLDate& now); } #endif -- cgit v1.2.3 From 5aa8b5d37eb6824865d09af248aa9d9d518daeb9 Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 11 May 2010 17:27:14 -0700 Subject: Clean up merge, dueling LLDateUtil refactoring --- indra/newview/lldateutil.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra/newview/lldateutil.h') diff --git a/indra/newview/lldateutil.h b/indra/newview/lldateutil.h index a2bfa11ce7..8d41eea511 100644 --- a/indra/newview/lldateutil.h +++ b/indra/newview/lldateutil.h @@ -69,12 +69,12 @@ namespace LLDateUtil std::string ageFromDate(const std::string& date_string); // As above, for YYYY-MM-DD dates - std::string ageFromDateISO(const std::string& date_string, const LLDate& now); + //std::string ageFromDateISO(const std::string& date_string, const LLDate& now); // Calls the above with LLDate::now() - std::string ageFromDateISO(const std::string& date_string); + //std::string ageFromDateISO(const std::string& date_string); - std::string ageFromDate(S32 born_year, S32 born_month, S32 born_day, const LLDate& now); + //std::string ageFromDate(S32 born_year, S32 born_month, S32 born_day, const LLDate& now); } #endif -- cgit v1.2.3