Lines Matching refs:immutable
214 static immutable(TimeZone) testTZ(string tzName,
225 immutable tz = PosixTimeZone.getTimeZone(tzName); in version()
230 immutable tz = WindowsTimeZone.getTimeZone(tzName); in version()
234 immutable hasDST = dstOffset != Duration.zero;
241 immutable stdDate = DateTime(2010, north ? 1 : 7, 1, 6, 0, 0);
242 immutable dstDate = DateTime(2010, north ? 7 : 1, 1, 6, 0, 0);
384 immutable spring = dstSwitches[i][2];
385 immutable fall = dstSwitches[i][3];
396 immutable targetHour = hour < 0 ? hour + 24 : hour;
510 this(string name, string stdName, string dstName) @safe immutable pure in this()
520 immutable string _name;
521 immutable string _stdName;
522 immutable string _dstName;
763 auto janOffset = SysTime(Date(currYear, 1, 4), cast(immutable) this).stdTime - in hasDST()
765 auto julyOffset = SysTime(Date(currYear, 7, 4), cast(immutable) this).stdTime - in hasDST()
1249 this() @safe immutable pure in this()
1255 static immutable UTC _utc = new immutable(UTC)();
1336 auto west = new immutable SimpleTimeZone(dur!"hours"(-8));
1337 auto east = new immutable SimpleTimeZone(dur!"hours"(8));
1975 immutable leapSecs = calculateLeapSeconds(adjTime); in utcOffset()
1977 immutable past = unixTime - convert!("days", "seconds")(1); in utcOffset()
1978 immutable future = unixTime + convert!("days", "seconds")(1); in utcOffset()
1980 immutable pastFound = countUntil!"b < a.timeT"(_transitions, past); in utcOffset()
1985 immutable futureFound = countUntil!"b < a.timeT"(_transitions[pastFound .. $], future); in utcOffset()
1986 immutable pastTrans = pastFound == 0 ? _transitions[0] : _transitions[pastFound - 1]; in utcOffset()
1991 immutable futureTrans = futureFound == -1 ? _transitions.back in utcOffset()
1993 immutable pastOffset = pastTrans.ttInfo.utcOffset; in utcOffset()
1998 … immutable found = countUntil!"b < a.timeT"(_transitions[pastFound .. $], unixTime - pastOffset); in utcOffset()
2003 immutable transition = found == 0 ? pastTrans : _transitions[pastFound + found - 1]; in utcOffset()
2070 …static immutable(PosixTimeZone) getTimeZone(string name, string tzDatabaseDir = defaultTZDatabaseD…
2100 immutable gmtZone = name.representation().canFind("GMT");
2107 immutable char tzFileVersion = readVal!char(tzFile);
2197 immutable char tzFileVersion2 = readVal!(char)(tzFile);
2314 auto ttInfos = new immutable(TTInfo)*[](tempTTInfos.length);
2325 ttInfo = new immutable(TTInfo)(tempTTInfos[i], abbrev);
2331 immutable ttiIndex = ttInfoIndices[i];
2384 …return new immutable PosixTimeZone(transitions.idup, leapSeconds.idup, name, stdName, dstName, has…
2536 this(long timeT, immutable (TTInfo)* ttInfo) @safe pure in this()
2543 immutable (TTInfo)* ttInfo;
2568 this(scope const TempTTInfo tempTTInfo, string abbrev) @safe immutable pure in this()
2575 immutable int utcOffset; // Offset from UTC.
2576 immutable bool isDST; // Whether DST is in effect.
2577 immutable string abbrev; // The current abbreviation for the time zone.
2607 this(long timeT, immutable (TTInfo)* ttInfo, TransitionType* ttype) @safe pure in this()
2615 immutable (TTInfo)* ttInfo;
2645 if ((isIntegral!T || isSomeChar!T) || is(immutable T == immutable bool))
2700 immutable unixTime = stdTimeToUnixTime(stdTime); in calculateLeapSeconds()
2705 immutable found = countUntil!"b < a.timeT"(_leapSeconds, unixTime); in calculateLeapSeconds()
2710 immutable leapSecond = found == 0 ? _leapSeconds[0] : _leapSeconds[found - 1]; in calculateLeapSeconds()
2716 this(immutable Transition[] transitions, in this()
2717 immutable LeapSecond[] leapSeconds, in this()
2721 bool hasDST) @safe immutable pure in this()
2820 immutable Transition[] _transitions;
2823 immutable LeapSecond[] _leapSeconds;
2826 immutable bool _hasDST;
3123 … immutable result = SystemTimeToTzSpecificLocalTime(cast(TIME_ZONE_INFORMATION*) tzInfo, in version()
3128 immutable otherDateTime = DateTime(otherTime.wYear, in version()
3134 immutable diff = utcDateTime - otherDateTime; in version()
3135 immutable minutes = diff.total!"minutes" - tzInfo.Bias; in version()
3216 … immutable result = TzSpecificLocalTimeToSystemTime(cast(TIME_ZONE_INFORMATION*) tzInfo,
3222 immutable utcDateTime = DateTime(utcTime.wYear,
3229 immutable diff = localDateTime - utcDateTime;
3230 immutable minutes = -tzInfo.Bias - diff.total!"minutes";
3273 this(string name, TIME_ZONE_INFORMATION tzInfo) @trusted immutable pure
3411 immutable f1 = `<mapZone other="`;