5#include "Containers/StringFwd.h"
6#include "Containers/UnrealString.h"
8#include "Misc/Timespan.h"
9#include "Serialization/Archive.h"
10#include "Serialization/StructuredArchive.h"
11#include "Templates/TypeHash.h"
19
20
34
35
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
85
86
87
88
94
95
96
97
98
99
100
101
102
103
104 FDateTime(int32 Year, int32 Month, int32 Day, int32 Hour = 0, int32 Minute = 0, int32 Second = 0, int32 Millisecond = 0);
109
110
111
112
113
120
121
122
123
124
132 UE_DEPRECATED(5.1,
"Adding dates doesn't make sense. Please use FDateTime + FTimespan instead")
139
140
141
142
143
150
151
152
153
154
161
162
163
164
165
174
175
176
177
178
185
186
187
188
189
196
197
198
199
200
207
208
209
210
211
218
219
220
221
222
229
230
231
232
233
242
243
244
245
246
247
248
249
250
251
255
256
257
258
259
260
267
268
269
270
271
272
273 void GetDate(int32& OutYear, int32& OutMonth, int32& OutDay)
const;
276
277
278
279
280
284
285
286
287
288
292
293
294
295
296
300
301
302
303
304
311
312
313
314
315
319
320
321
322
323
324
325
326
327
334
335
336
337
338
339
340
341
348
349
350
351
352
359
360
361
362
363
370
371
372
373
374
378
379
380
381
382
389
390
391
392
393
400
401
402
403
410
411
412
413
414
421
422
423
424
425
429
430
431
432
433
434
435
436
437
441
442
443
444
445
452
453
454
455
456
463
464
465
466
467
471
472
476
477
478
479
480
481
482
486
487
488
489
490
491
492
496
497
498
499
500
501
502
503
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
528 void ToString(
const TCHAR* Format, FStringBuilderBase& Result)
const;
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
559
560
561
562
563
572
573
574
575
576
577
578
582
583
584
585
586
587
591
592
593
594
595
596
603
604
605
606
607
608
615
616
617
618
619
620
621
622
623
627
628
629
630
631
632
639
640
641
642
643
644
651
652
653
654
655
656
657
658
659
663
664
665
666
667
668
669
670
671
672
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
699
700
701
702
703
704
705
709
710
711
712
713
714
715
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
742
743
744
745
746
747
748
749
750
751
752
753
754
755 static bool Validate(int32 Year, int32 Month, int32 Day, int32 Hour, int32 Minute, int32 Second, int32 Millisecond);
760
761
762
763
764
765
768 return Ar << DateTime
.Ticks;
772
773
774
775
776
783
784
785
786
787
790 return GetTypeHash(DateTime
.Ticks);
810 friend struct Z_Construct_UScriptStruct_FDateTime_Statics;
#define UE_DEPRECATED(Version, Message)
void operator<<(int64 &Value)
constexpr int64 TicksPerDay
constexpr int64 TicksPerMillisecond
constexpr int64 TicksPerMinute
constexpr int64 TicksPerHour
constexpr int64 TicksPerSecond
void GetDate(int32 &OutYear, int32 &OutMonth, int32 &OutDay) const
static FDateTime MaxValue()
FDateTime GetDate() const
double GetModifiedJulianDay() const
static bool ParseIso8601(const TCHAR *DateTimeString, FDateTime &OutDateTime)
bool operator<=(const FDateTime &Other) const
FDateTime & operator-=(const FTimespan &Other)
FString ToIso8601() const
void ToString(const TCHAR *Format, FStringBuilderBase &Result) const
double GetJulianDay() const
FString ToFormattedString(const TCHAR *Format) const
bool Serialize(FArchive &Ar)
bool operator>=(const FDateTime &Other) const
FDateTime & operator+=(const FTimespan &Other)
static int32 DaysInMonth(int32 Year, int32 Month)
static bool ParseHttpDate(const FString &HttpDate, FDateTime &OutDateTime)
friend uint32 GetTypeHash(const FDateTime &DateTime)
bool operator!=(const FDateTime &Other) const
EMonthOfYear GetMonthOfYear() const
static FDateTime UtcNow()
bool NetSerialize(FArchive &Ar, class UPackageMap *Map, bool &bOutSuccess)
FTimespan GetTimeOfDay() const
FString ToString(const TCHAR *Format) const
int64 ToUnixTimestamp() const
static bool Validate(int32 Year, int32 Month, int32 Day, int32 Hour, int32 Minute, int32 Second, int32 Millisecond)
FDateTime operator-(const FTimespan &Other) const
bool operator<(const FDateTime &Other) const
bool ExportTextItem(FString &ValueStr, FDateTime const &DefaultValue, UObject *Parent, int32 PortFlags, UObject *ExportRootScope) const
bool ImportTextItem(const TCHAR *&Buffer, int32 PortFlags, UObject *Parent, FOutputDevice *ErrorText)
static const int32 DaysToMonth[]
static bool Parse(const FString &DateTimeString, FDateTime &OutDateTime)
static const TCHAR * LongDayNames[]
static FDateTime MinValue()
int32 GetMillisecond() const
int32 GetDayOfYear() const
bool operator>(const FDateTime &Other) const
static FDateTime FromUnixTimestamp(int64 UnixTime)
static FDateTime FromJulianDay(double JulianDay)
FString ToHttpDate() const
FTimespan operator-(const FDateTime &Other) const
static const int32 DaysPerMonth[]
static const TCHAR * ShortDayNames[]
EDayOfWeek GetDayOfWeek() const
bool operator==(const FDateTime &Other) const
static int32 DaysInYear(int32 Year)
FDateTime operator+(const FTimespan &Other) const
FDateTime(int32 Year, int32 Month, int32 Day, int32 Hour=0, int32 Minute=0, int32 Second=0, int32 Millisecond=0)
friend void operator<<(FStructuredArchive::FSlot Slot, FDateTime &DateTime)
static const TCHAR * LongMonthNames[]
static bool IsLeapYear(int32 Year)
FDateTime operator+(const FDateTime &Other)
static const TCHAR * ShortMonthNames[]
double GetTotalDays() const