CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace utils {
31 constexpr
auto Epoch_Time = std::chrono::duration<int64_t, std::milli>(1459468800000);
constexpr auto Epoch_Time
Represents the number of milliseconds between 1970-01-01 00:00:00 UTC and 2016-04-01 00:00:00 UTC.
Definition: NetworkTime.h:31
Timestamp ToNetworkTime(const Timestamp ×tamp)
Definition: NetworkTime.cpp:33
constexpr ValueType unwrap() const
Unwraps this value and returns the underlying raw value.
Definition: BaseValue.h:53
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
Timestamp ToUnixTime(const Timestamp ×tamp)
Definition: NetworkTime.cpp:40
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
utils::BaseValue< uint64_t, Timestamp_tag > Timestamp
Definition: src/catapult/types.h:73
Definition: AddressExtractionExtension.cpp:28
Timestamp NetworkTime()
Returns the network time, i.e. the number of milliseconds since Epoch_Time.
Definition: NetworkTime.cpp:27