summaryrefslogtreecommitdiff
path: root/indra/newview/lldateutil.h
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-07-22 09:06:42 -0400
committerOz Linden <oz@lindenlab.com>2011-07-22 09:06:42 -0400
commitebbadcf7720cfcbdf5da99ad219de4e7edcf0c6f (patch)
treeb7782e3c46284e99c3bb9ef081ce4cc8f04d292a /indra/newview/lldateutil.h
parentd26356d7e16191da90cae23d3871d4e7289e175f (diff)
parentf45747e52401569c0ee489d7f408cf00f4c58149 (diff)
merge changes from snowstorm team review build
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