<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=IsNight</id>
	<title>IsNight - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cmm.ozdeadmeat.com/index.php?action=history&amp;feed=atom&amp;title=IsNight"/>
	<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=IsNight&amp;action=history"/>
	<updated>2026-06-04T14:20:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://cmm.ozdeadmeat.com/index.php?title=IsNight&amp;diff=5763&amp;oldid=prev</id>
		<title>Ozdeadmeat: IsNight – created via PowerShell script (2025-11-11T21:11:59Z)</title>
		<link rel="alternate" type="text/html" href="https://cmm.ozdeadmeat.com/index.php?title=IsNight&amp;diff=5763&amp;oldid=prev"/>
		<updated>2025-11-11T10:12:00Z</updated>

		<summary type="html">&lt;p&gt;IsNight – created via PowerShell script (2025-11-11T21:11:59Z)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:FunctionInfo|fName=          IsNight|fDescription=   Determines whether the current location of an aircraft is in darkness (i.e., the sun is below the horizon). The function calculates the local time offset based on the mission theatre, then queries the simulated sun elevation for the aircraft’s latitude/longitude. If the elevation angle is negative, it returns true (night); otherwise false.|parentFile=     cmm.DCSFunctions.lua|syntax=         CMM.IsNight(&amp;lt;PlayerAirFrame table&amp;gt;)|return=         boolean|returnDesc=     If the objects location was night time or not.|example=        local isNight = CMM.IsNight(Event.initiator); env.info(&amp;quot;Is it night? &amp;quot;..tostring(isNight))|exampleDesc=    Shows how to call CMM.IsNight with an event initiator (an aircraft unit) and log whether the aircraft is currently in darkness.|related=        |note=           |envType= CMM|par1=         table PlayerAirFrame|reqType1=     table|reqName1=     PlayerAirFrame|desc1=       The unit object whose position will be checked.}}&lt;/div&gt;</summary>
		<author><name>Ozdeadmeat</name></author>
	</entry>
</feed>