Lines Matching refs:immutable

181         static immutable(TimeZone) testTZ(string tzName,
192 immutable tz = PosixTimeZone.getTimeZone(tzName); in version()
197 immutable tz = WindowsTimeZone.getTimeZone(tzName); in version()
201 immutable hasDST = dstOffset != Duration.zero;
207 immutable stdDate = DateTime(2010, north ? 1 : 7, 1, 6, 0, 0);
208 immutable dstDate = DateTime(2010, north ? 7 : 1, 1, 6, 0, 0);
344 immutable spring = dstSwitches[i][2];
345 immutable fall = dstSwitches[i][3];
355 immutable targetHour = hour < 0 ? hour + 24 : hour;
468 this(string name, string stdName, string dstName) @safe immutable pure in this()
478 immutable string _name;
479 immutable string _stdName;
480 immutable string _dstName;
1189 this() @safe immutable pure in this()
1195 static immutable UTC _utc = new immutable(UTC)();
1276 auto west = new immutable SimpleTimeZone(dur!"hours"(-8));
1277 auto east = new immutable SimpleTimeZone(dur!"hours"(8));
1857 immutable leapSecs = calculateLeapSeconds(adjTime); in utcOffset()
1859 immutable past = unixTime - convert!("days", "seconds")(1); in utcOffset()
1860 immutable future = unixTime + convert!("days", "seconds")(1); in utcOffset()
1862 immutable pastFound = countUntil!"b < a.timeT"(_transitions, past); in utcOffset()
1867 immutable futureFound = countUntil!"b < a.timeT"(_transitions[pastFound .. $], future); in utcOffset()
1868 immutable pastTrans = pastFound == 0 ? _transitions[0] : _transitions[pastFound - 1]; in utcOffset()
1873 immutable futureTrans = futureFound == -1 ? _transitions.back in utcOffset()
1875 immutable pastOffset = pastTrans.ttInfo.utcOffset; in utcOffset()
1880immutable found = countUntil!"b < a.timeT"(_transitions[pastFound .. $], unixTime - pastOffset); in utcOffset()
1885 immutable transition = found == 0 ? pastTrans : _transitions[pastFound + found - 1]; in utcOffset()
1947 …static immutable(PosixTimeZone) getTimeZone(string name, string tzDatabaseDir = defaultTZDatabaseD…
1975 immutable gmtZone = name.representation().canFind("GMT");
1981 immutable char tzFileVersion = readVal!char(tzFile);
2071 immutable char tzFileVersion2 = readVal!(char)(tzFile);
2188 auto ttInfos = new immutable(TTInfo)*[](tempTTInfos.length);
2199 ttInfo = new immutable(TTInfo)(tempTTInfos[i], abbrev);
2205 immutable ttiIndex = ttInfoIndices[i];
2258 …return new immutable PosixTimeZone(transitions.idup, leapSeconds.idup, name, stdName, dstName, has…
2398 this(long timeT, immutable (TTInfo)* ttInfo) @safe pure in this()
2405 immutable (TTInfo)* ttInfo;
2430 this(in TempTTInfo tempTTInfo, string abbrev) @safe immutable pure in this()
2437 immutable int utcOffset; // Offset from UTC.
2438 immutable bool isDST; // Whether DST is in effect.
2439 immutable string abbrev; // The current abbreviation for the time zone.
2469 this(long timeT, immutable (TTInfo)* ttInfo, TransitionType* ttype) @safe pure in this()
2477 immutable (TTInfo)* ttInfo;
2561 immutable unixTime = stdTimeToUnixTime(stdTime); in calculateLeapSeconds()
2566 immutable found = countUntil!"b < a.timeT"(_leapSeconds, unixTime); in calculateLeapSeconds()
2571 immutable leapSecond = found == 0 ? _leapSeconds[0] : _leapSeconds[found - 1]; in calculateLeapSeconds()
2577 this(immutable Transition[] transitions, in this()
2578 immutable LeapSecond[] leapSeconds, in this()
2582 bool hasDST) @safe immutable pure in this()
2680 immutable Transition[] _transitions;
2683 immutable LeapSecond[] _leapSeconds;
2686 immutable bool _hasDST;
2981immutable result = SystemTimeToTzSpecificLocalTime(cast(TIME_ZONE_INFORMATION*) tzInfo, in version()
2986 immutable otherDateTime = DateTime(otherTime.wYear, in version()
2992 immutable diff = utcDateTime - otherDateTime; in version()
2993 immutable minutes = diff.total!"minutes" - tzInfo.Bias; in version()
3072immutable result = TzSpecificLocalTimeToSystemTime(cast(TIME_ZONE_INFORMATION*) tzInfo,
3077 immutable utcDateTime = DateTime(utcTime.wYear,
3084 immutable diff = localDateTime - utcDateTime;
3085 immutable minutes = -tzInfo.Bias - diff.total!"minutes";
3127 this(string name, TIME_ZONE_INFORMATION tzInfo) @trusted immutable pure
3265 immutable f1 = `<mapZone other="`;