<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nb">
	<id>https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AAge_utilities%2Fdok</id>
	<title>Modul:Age utilities/dok - Sideversjonshistorikk</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AAge_utilities%2Fdok"/>
	<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Age_utilities/dok&amp;action=history"/>
	<updated>2026-06-01T15:20:46Z</updated>
	<subtitle>Versjonshistorikk for denne siden på wikien</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Age_utilities/dok&amp;diff=219709&amp;oldid=prev</id>
		<title>Wikisida: Én sideversjon ble importert</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Age_utilities/dok&amp;diff=219709&amp;oldid=prev"/>
		<updated>2026-06-01T06:04:32Z</updated>

		<summary type="html">&lt;p&gt;Én sideversjon ble importert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nb&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Eldre sideversjon&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Sideversjonen fra 1. jun. 2026 kl. 06:04&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;nb&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen forskjell)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key c1wiki:diff:1.41:old-219708:rev-219709 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wikisida</name></author>
	</entry>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Age_utilities/dok&amp;diff=219708&amp;oldid=prev</id>
		<title>nb&gt;Jeblad (bot): bytter tagger for tag-funksjon</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Age_utilities/dok&amp;diff=219708&amp;oldid=prev"/>
		<updated>2020-04-25T23:56:07Z</updated>

		<summary type="html">&lt;p&gt;bytter tagger for tag-funksjon&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny side&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Dokumentasjonsunderside}}&lt;br /&gt;
Denne modulen har noen funksjoner for å utføre datoutregninger. Den brukes ikke direkte fra wikitekst, men kan benyttes av andre lua-moduler. For alder/age brukes en struktur/tabell med feltene &amp;lt;code lang=&amp;quot;lua&amp;quot;&amp;gt;{years = x, days = y}&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Oversikt ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Returns age in years and days. Input is two dates in numeric form as returned from os.time&lt;br /&gt;
function ageInYearsAndDays(date2N, date1N)&lt;br /&gt;
&lt;br /&gt;
-- Returns &amp;lt; 0 if ageA &amp;lt; ageB, 0 if ageA == ageB, &amp;gt; 0 if ageA &amp;gt; ageB&lt;br /&gt;
function compareAges(ageA, ageB)&lt;br /&gt;
&lt;br /&gt;
-- Returns true if ageA == ageB&lt;br /&gt;
function equalAges(ageA, ageB)&lt;br /&gt;
&lt;br /&gt;
-- Returns a date as a sortable string with age in years and days (&amp;quot;x år og y dager&amp;quot;)&lt;br /&gt;
function ageInYearsAndDaysFormat(age)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Eksempel ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local ageUtil = require(&amp;#039;Module:Age utilities&amp;#039;)&lt;br /&gt;
local ageInYearsAndDays = ageUtil.ageInYearsAndDays&lt;br /&gt;
local ageInYearsAndDaysFormat = ageUtil.ageInYearsAndDaysFormat&lt;br /&gt;
&lt;br /&gt;
function something()&lt;br /&gt;
    local age = ageInYearsAndDays(os.time({year = 1997, month = 8, day = 4}), os.time({year = 1875, month = 2, day = 21}))&lt;br /&gt;
    return ageInYearsAndDaysFormat(age)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Kategori:Moduler]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>nb&gt;Jeblad (bot)</name></author>
	</entry>
</feed>