1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>twisted.python.runtime.Platform</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
23
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="twisted.html">Package twisted</a> ::
33
<a href="twisted.python.html">Package python</a> ::
34
<a href="twisted.python.runtime.html">Module runtime</a> ::
38
<td><table cellpadding="0" cellspacing="0">
39
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.python.runtime.Platform.html" target="_top">no frames</a>]</font></td></tr>
43
<!-- =========== START OF CLASS DESCRIPTION =========== -->
44
<h2 class="class">Class Platform</h2>
48
Gives us information about the platform we're running on
52
<!-- =========== START OF METHOD SUMMARY =========== -->
53
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
54
<tr bgcolor="#70b0f0" class="summary">
55
<th colspan="2">Method Summary</th></tr>
56
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
57
<td><code><a name="__init__"></a><span class="summary-sig"><span class="summary-sig-name">__init__</span>(<span class=summary-sig-arg>self</span>,
58
<span class=summary-sig-arg>name</span>)</span></code>
60
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
61
<td><code><span class="summary-sig"><a href="twisted.python.runtime.Platform.html#getType" class="summary-sig-name"><code>getType</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
63
Return 'posix', 'win32' or 'java'</td></tr>
64
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
65
<td><code><span class="summary-sig"><a href="twisted.python.runtime.Platform.html#isKnown" class="summary-sig-name"><code>isKnown</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
67
Do we know about this platform?</td></tr>
68
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
69
<td><code><span class="summary-sig"><a href="twisted.python.runtime.Platform.html#isMacOSX" class="summary-sig-name"><code>isMacOSX</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
71
Return if we are runnng on Mac OS X.</td></tr>
72
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
73
<td><code><span class="summary-sig"><a href="twisted.python.runtime.Platform.html#isWinNT" class="summary-sig-name"><code>isWinNT</code></a>(<span class=summary-sig-arg>self</span>)</span></code>
75
Are we running in Windows NT?</td></tr>
76
<tr><td align="right" valign="top" width="15%"><font size="-1">floating point number</font></td>
77
<td><code><span class="summary-sig"><a href="twisted.python.runtime.Platform.html#seconds" class="summary-sig-name"><code>seconds</code></a>()</span></code>
79
Return the current time in seconds since the Epoch. <i>(Static method)</i>
84
<!-- =========== START OF CLASS VARIABLE SUMMARY =========== -->
85
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
86
<tr bgcolor="#70b0f0" class="summary">
87
<th colspan="2">Class Variable Summary</th></tr>
88
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>str</code></font></td>
89
<td><b><a href="twisted.python.runtime.Platform.html#type"><code>type</code></a></b> = <span title="'posix'"><code><span class="variable-quote">'</span>posix<span class="variable-quote">'</span> </code>
94
<!-- =========== START OF INSTANCE METHOD DETAILS =========== -->
95
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
96
<tr bgcolor="#70b0f0" class="details">
97
<th colspan="2">Instance Method Details</th></tr>
100
<a name="getType"></a>
101
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
102
<h3><span class="sig"><span class="sig-name">getType</span>(<span class=sig-arg>self</span>)</span>
104
Return 'posix', 'win32' or 'java'
109
<a name="isKnown"></a>
110
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
111
<h3><span class="sig"><span class="sig-name">isKnown</span>(<span class=sig-arg>self</span>)</span>
113
Do we know about this platform?
118
<a name="isMacOSX"></a>
119
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
120
<h3><span class="sig"><span class="sig-name">isMacOSX</span>(<span class=sig-arg>self</span>)</span>
122
Return if we are runnng on Mac OS X.
127
<a name="isWinNT"></a>
128
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
129
<h3><span class="sig"><span class="sig-name">isWinNT</span>(<span class=sig-arg>self</span>)</span>
131
Are we running in Windows NT?
138
<!-- =========== START OF STATIC METHOD DETAILS =========== -->
139
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
140
<tr bgcolor="#70b0f0" class="details">
141
<th colspan="2">Static Method Details</th></tr>
144
<a name="seconds"></a>
145
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
146
<h3><span class="sig"><span class="sig-name">seconds</span>()</span>
148
Return the current time in seconds since the Epoch. Fractions of a
149
second may be present if the system clock provides them.
151
<dl><dt><b>Returns:</b></dt>
153
floating point number </dd>
160
<!-- =========== START OF CLASS VARIABLE DETAILS =========== -->
161
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
162
<tr bgcolor="#70b0f0" class="details">
163
<th colspan="2">Class Variable Details</th></tr>
165
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
172
<dt><b>Type:</b></dt>
177
<span title="'posix'"> <dt><b>Value:</b></dt>
179
<pre class="variable">
180
<span class="variable-quote">'</span>posix<span class="variable-quote">'</span> </pre>
181
</td></tr></table></dd>
184
</dl></td></tr></table>
188
<!-- =========== START OF NAVBAR =========== -->
189
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
191
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
192
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
193
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
194
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
195
<th class="navbar" align="right" width="100%">
196
<table border="0" cellpadding="0" cellspacing="0">
197
<tr><th class="navbar" align="center">
199
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
200
</p></th></tr></table>
205
<table border="0" cellpadding="0" cellspacing="0" width="100%">
207
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:43 2004</font></td>
208
<td align="right"><a href="http://epydoc.sourceforge.net"
209
><font size="-2">http://epydoc.sf.net</font></a></td>