summaryrefslogtreecommitdiff
path: root/indra/newview/lldateutil.h
diff options
context:
space:
mode:
authorSeth ProductEngine <slitovchuk@productengine.com>2011-07-19 20:04:24 +0300
committerSeth ProductEngine <slitovchuk@productengine.com>2011-07-19 20:04:24 +0300
commitcf8c7701dfd758a9f19e076baad0a9b8d37bbe5f (patch)
tree433952ac094215231fe52f665f92faa9b0c3997f /indra/newview/lldateutil.h
parent4dc0850da7469906e5ad052da71830b05005295b (diff)
STORM-1221 FIXED Hard coded dates made localizable under Group Profile Land/Assets.
Added a function for parsing a date string of specific format. Added strings defining the date format in Group Profile Land/Assets that should be localized.
Diffstat (limited to 'indra/newview/lldateutil.h')
-rw-r--r--indra/newview/lldateutil.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/lldateutil.h b/indra/newview/lldateutil.h
index 2843a357c9..f027d360f7 100644
--- a/indra/newview/lldateutil.h
+++ b/indra/newview/lldateutil.h
@@ -69,6 +69,20 @@ namespace LLDateUtil
//std::string ageFromDateISO(const std::string& date_string);
//std::string ageFromDate(S32 born_year, S32 born_month, S32 born_day, const LLDate& now);
+
+ /**
+ * Convert a string of a specified date format into seconds since the Epoch.
+ *
+ * Many of the format flags are those used by strftime(...), but not all.
+ * For the full list of supported time format specifiers
+ * see http://www.boost.org/doc/libs/1_47_0/doc/html/date_time/date_time_io.html#date_time.format_flags
+ *
+ * @param format Format characters string. Example: "%A %b %d, %Y"
+ * @param str Date string containing the time in specified format.
+ *
+ * @return Number of seconds since 01/01/1970 UTC.
+ */
+ S32 secondsSinceEpochFromString(const std::string& format, const std::string& str);
}
#endif