blob: cc696c889977efd9957ee521fc701a91d8c143d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/* Starshatter: The Open Source Project
Copyright (c) 2021-2024, Starshatter: The Open Source Project Contributors
Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
Copyright (c) 1997-2006, Destroyer Studios LLC.
*/
#pragma once
#include <Text.h>
namespace starshatter
{
namespace engine
{
struct Stardate
{
long double value = {};
Stardate();
Stardate(long double value_);
operator long double() const;
Text Format(bool short_format=false) const;
};
Stardate CurrentTime();
Stardate OperationTime();
Stardate MissionTime();
long double Epoch();
long double OperationStart();
long double MissionStart();
void SetOperationStart(long double value={}, bool relative=false);
void SetMissionStart(long double value={}, bool relative=false);
} // namespace engine
} // namespace starshatter
|