@@ -503,7 +503,7 @@ public:
503
503
given $(REF DateTime,std,datetime,date) is assumed to
504
504
be in the given time zone.
505
505
+/
506
- this(DateTime dateTime, immutable TimeZone tz = null) @safe nothrow
506
+ this(DateTime dateTime, return scope immutable TimeZone tz = null) return scope @safe nothrow
507
507
{
508
508
try
509
509
this(dateTime, Duration.zero, tz);
@@ -554,7 +554,7 @@ public:
554
554
$(REF DateTimeException,std,datetime,date) if `fracSecs` is negative or if it's
555
555
greater than or equal to one second.
556
556
+/
557
- this(DateTime dateTime, Duration fracSecs, immutable TimeZone tz = null) @safe
557
+ this(DateTime dateTime, Duration fracSecs, return scope immutable TimeZone tz = null) return scope @safe
558
558
{
559
559
enforce(fracSecs >= Duration.zero, new DateTimeException("A SysTime cannot have negative fractional seconds."));
560
560
enforce(fracSecs < seconds(1), new DateTimeException("Fractional seconds must be less than one second."));
@@ -611,7 +611,7 @@ public:
611
611
given $(REF Date,std,datetime,date) is assumed to be in the
612
612
given time zone.
613
613
+/
614
- this(Date date, immutable TimeZone tz = null) @safe nothrow
614
+ this(Date date, return scope immutable TimeZone tz = null) return scope @safe nothrow
615
615
{
616
616
_timezone = tz is null ? LocalTime() : tz;
617
617
@@ -664,7 +664,7 @@ public:
664
664
$(LREF SysTime). If null,
665
665
$(REF LocalTime,std,datetime,timezone) will be used.
666
666
+/
667
- this(long stdTime, immutable TimeZone tz = null) @safe pure nothrow
667
+ this(long stdTime, return scope immutable TimeZone tz = null) return scope @safe pure nothrow
668
668
{
669
669
_stdTime = stdTime;
670
670
_timezone = tz is null ? LocalTime() : tz;
@@ -693,7 +693,7 @@ public:
693
693
694
694
Returns: The `this` of this `SysTime`.
695
695
+/
696
- ref SysTime opAssign()(auto ref const(SysTime) rhs) return @safe pure nothrow scope
696
+ ref SysTime opAssign()(auto ref const(SysTime) rhs) return scope @safe pure nothrow
697
697
{
698
698
_stdTime = rhs._stdTime;
699
699
_timezone = rhs._timezone;
@@ -710,6 +710,7 @@ public:
710
710
st = other;
711
711
assert(st == other);
712
712
713
+ version (none) // https://issues.dlang.org/show_bug.cgi?id=21175
713
714
static void testScope(scope ref SysTime left, const scope SysTime right) @safe
714
715
{
715
716
left = right;
@@ -2184,7 +2185,7 @@ public:
2184
2185
hours - adjust the time to this $(LREF SysTime)'s time zone before
2185
2186
returning.
2186
2187
+/
2187
- @property immutable(TimeZone) timezone() @safe const pure nothrow scope
2188
+ @property immutable(TimeZone) timezone() @safe const pure nothrow return scope
2188
2189
{
2189
2190
return _timezone;
2190
2191
}
@@ -2238,7 +2239,7 @@ public:
2238
2239
/++
2239
2240
Returns whether DST is in effect for this $(LREF SysTime).
2240
2241
+/
2241
- @property bool dstInEffect() @safe const nothrow scope
2242
+ @property bool dstInEffect() @safe const nothrow return scope
2242
2243
{
2243
2244
return _timezone.dstInEffect(_stdTime);
2244
2245
}
@@ -2261,7 +2262,7 @@ public:
2261
2262
Returns what the offset from UTC is for this $(LREF SysTime).
2262
2263
It includes the DST offset in effect at that time (if any).
2263
2264
+/
2264
- @property Duration utcOffset() @safe const nothrow scope
2265
+ @property Duration utcOffset() @safe const nothrow return scope
2265
2266
{
2266
2267
return _timezone.utcOffsetAt(_stdTime);
2267
2268
}
@@ -9586,13 +9587,13 @@ private:
9586
9587
9587
9588
@property override bool hasDST() @safe const nothrow @nogc { return false; }
9588
9589
9589
- override bool dstInEffect(long stdTime) @safe const nothrow @nogc { return false; }
9590
+ override bool dstInEffect(long stdTime) @safe const scope nothrow @nogc { return false; }
9590
9591
9591
- override long utcToTZ(long stdTime) @safe const nothrow @nogc { return 0; }
9592
+ override long utcToTZ(long stdTime) @safe const scope nothrow @nogc { return 0; }
9592
9593
9593
- override long tzToUTC(long adjTime) @safe const nothrow @nogc { return 0; }
9594
+ override long tzToUTC(long adjTime) @safe const scope nothrow @nogc { return 0; }
9594
9595
9595
- override Duration utcOffsetAt(long stdTime) @safe const nothrow @nogc { return Duration.zero; }
9596
+ override Duration utcOffsetAt(long stdTime) @safe const scope nothrow @nogc { return Duration.zero; }
9596
9597
9597
9598
private:
9598
9599
@@ -9628,7 +9629,7 @@ private:
9628
9629
return _timezoneStorage is null ? InitTimeZone() : _timezoneStorage;
9629
9630
}
9630
9631
9631
- pragma(inline, true) @property void _timezone(immutable TimeZone tz) @safe pure nothrow @nogc scope
9632
+ pragma(inline, true) @property void _timezone(return scope immutable TimeZone tz) @safe pure nothrow @nogc scope
9632
9633
{
9633
9634
_timezoneStorage = tz;
9634
9635
}
0 commit comments