<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fplaytime</id>
	<title>Manual:DIL Manual/playtime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fplaytime"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/playtime&amp;action=history"/>
	<updated>2026-11-22T20:29:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/playtime&amp;diff=2923&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/playtime&amp;diff=2923&amp;oldid=prev"/>
		<updated>2026-11-14T23:12:59Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= playtime =&lt;br /&gt;
'''Field''' (integer, read-only; units: PC).&lt;br /&gt;
&lt;br /&gt;
 pc.playtime : integer&lt;br /&gt;
&lt;br /&gt;
How long the player has been logged in, in total, in real seconds.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Players only. On an NPC, an object, a room or null the field fails.&lt;br /&gt;
* It can't be assigned (vmc: &amp;quot;Illegal lvalue&amp;quot;).&lt;br /&gt;
* It grows when the player is saved (now and then while playing, and at log-off): the time since the last save is added then. During a session it lags behind by that much.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin string played_string(pc : unitptr);&lt;br /&gt;
var&lt;br /&gt;
   h : integer;&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   h := pc.playtime / 3600;&lt;br /&gt;
   return (&amp;quot;You have played &amp;quot; + itoa(h / 24) + &amp;quot; days and &amp;quot; + itoa(h % 24) +&lt;br /&gt;
           &amp;quot; hours.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Shows a player's total playing time, as &amp;lt;code&amp;gt;score&amp;lt;/code&amp;gt; does in commands.zon.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/birth|birth]]&lt;br /&gt;
* [[Manual:DIL Manual/realtime|realtime]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>