summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldate.h
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-07-05 19:18:09 +0300
committerGitHub <noreply@github.com>2024-07-05 19:18:09 +0300
commit958f7812839160247207c01e78b90f1935022ab3 (patch)
tree6ec615eb07b26a2ac2b07d747515847f8fdad0bd /indra/llcommon/lldate.h
parentb099dbef27f2af47a421bb9848cfbca1aaa08327 (diff)
parent1296afd96a74877feb91690ec8dcd99b225554b8 (diff)
Merge pull request #1930 from RyeMutt/llsd-opts
Introduce move support and string_view to LLSD
Diffstat (limited to 'indra/llcommon/lldate.h')
-rw-r--r--indra/llcommon/lldate.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/llcommon/lldate.h b/indra/llcommon/lldate.h
index 81f2dd0d1c..1a69a04232 100644
--- a/indra/llcommon/lldate.h
+++ b/indra/llcommon/lldate.h
@@ -43,16 +43,13 @@
*/
class LL_COMMON_API LLDate
{
+ static constexpr F64 DATE_EPOCH = 0.0;
public:
/**
* @brief Construct a date equal to epoch.
*/
- LLDate();
-
- /**
- * @brief Construct a date equal to the source date.
- */
- LLDate(const LLDate& date);
+ constexpr LLDate() : mSecondsSinceEpoch(DATE_EPOCH)
+ {}
/**
* @brief Construct a date from a seconds since epoch value.