PageRenderTime 52ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/www.cppreference.com/wiki/chrono/c/time

https://github.com/tsgates/cclookup
#! | 93 lines | 79 code | 14 blank | 0 comment | 0 complexity | e4d71fcd9e62e47989662ed0f9c3a15d MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  4. lang="en" dir="ltr">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>chrono:c:time</title>
  8. <meta name="generator" content="DokuWiki" />
  9. <meta name="robots" content="index,follow" />
  10. <meta name="date" content="2010-11-07T15:57:40-0800" />
  11. <meta name="keywords" content="chrono,c,time" />
  12. <link rel="search" type="application/opensearchdescription+xml" href="http://www.cppreference.com/wiki/lib/exe/opensearch.php" title="C++ Reference" />
  13. <link rel="start" href="../../../index.html" />
  14. <link rel="contents" href="http://www.cppreference.com/wiki/chrono/c/time?do=index" title="Sitemap" />
  15. <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="http://www.cppreference.com/wiki/feed.php" />
  16. <link rel="alternate" type="application/rss+xml" title="Current Namespace" href="http://www.cppreference.com/wiki/feed.php?mode=list&amp;ns=chrono:c" />
  17. <link rel="alternate" type="text/html" title="Plain HTML" href="http://www.cppreference.com/wiki/_export/xhtml/chrono/c/time" />
  18. <link rel="alternate" type="text/plain" title="Wiki Markup" href="http://www.cppreference.com/wiki/_export/raw/chrono/c/time" />
  19. <link rel="canonical" href="time" />
  20. <link rel="stylesheet" media="screen" type="text/css" href="../../lib/exe/css.php@t=custom1&amp;tseed=1289693594" />
  21. <link rel="stylesheet" media="all" type="text/css" href="../../lib/exe/css.php@s=all&amp;t=custom1&amp;tseed=1289693594" />
  22. <link rel="stylesheet" media="print" type="text/css" href="../../lib/exe/css.php@s=print&amp;t=custom1&amp;tseed=1289693594" />
  23. <script type="text/javascript" ><!--//--><![CDATA[//><!--
  24. var NS='chrono:c';var JSINFO = {"id":"chrono:c:time","namespace":"chrono:c"};
  25. //--><!]]></script>
  26. <script type="text/javascript" charset="utf-8" src="../../lib/exe/js.php@tseed=1289693594" ></script>
  27. </head>
  28. <body>
  29. <div class="dokuwiki export">
  30. <!-- TOC START -->
  31. <div class="toc">
  32. <div class="tocheader toctoggle" id="toc__header">Table of Contents</div>
  33. <div id="toc__inside">
  34. <ul class="toc">
  35. <li class="clear">
  36. <ul class="toc">
  37. <li class="level2"><div class="li"><span class="li"><a href="time#time" class="toc">time</a></span></div>
  38. <ul class="toc">
  39. <li class="level3"><div class="li"><span class="li"><a href="time#parameters" class="toc">Parameters</a></span></div></li>
  40. <li class="level3"><div class="li"><span class="li"><a href="time#return_value" class="toc">Return value</a></span></div></li>
  41. <li class="level3"><div class="li"><span class="li"><a href="time#see_also" class="toc">See also</a></span></div></li></ul>
  42. </li></ul>
  43. </li></ul>
  44. </div>
  45. </div>
  46. <!-- TOC END -->
  47. <h2 class="sectionedit1"><a name="time" id="time">time</a></h2>
  48. <div class="level2">
  49. <pre class="cpp code cpp"><span class="co2">#include &lt;ctime&gt;</span>
  50. &nbsp;
  51. <span class="kw4">time_t</span> <span class="kw3">time</span><span class="br0">&#40;</span> <span class="kw4">time_t</span> <span class="sy2">*</span><span class="kw3">time</span> <span class="br0">&#41;</span><span class="sy4">;</span></pre>
  52. <p>
  53. Gets the time since epoch as a <code>time_t</code> object.
  54. </p>
  55. </div>
  56. <!-- EDIT1 SECTION "time" [1-133] -->
  57. <h3 class="sectionedit2"><a name="parameters" id="parameters">Parameters</a></h3>
  58. <div class="level3">
  59. <p>
  60. <code>time</code> - pointer to a <code>time_t</code> object to store the time in. If <code>NULL</code> is passed instead, the argument is not used.
  61. </p>
  62. </div>
  63. <!-- EDIT2 SECTION "Parameters" [134-275] -->
  64. <h3 class="sectionedit3"><a name="return_value" id="return_value">Return value</a></h3>
  65. <div class="level3">
  66. <p>
  67. time since epoch as a <code>time_t</code> object on success, <code>-1</code> on error.
  68. </p>
  69. </div>
  70. <!-- EDIT3 SECTION "Return value" [276-367] -->
  71. <h3 class="sectionedit4"><a name="see_also" id="see_also">See also</a></h3>
  72. <div class="level3">
  73. <p>
  74. <a href="asctime" class="wikilink1" title="chrono:c:asctime">asctime</a>, <a href="clock" class="wikilink1" title="chrono:c:clock">clock</a>, <a href="ctime" class="wikilink1" title="chrono:c:ctime">ctime</a>, <a href="difftime" class="wikilink1" title="chrono:c:difftime">difftime</a>, <a href="gmtime" class="wikilink1" title="chrono:c:gmtime">gmtime</a>, <a href="localtime" class="wikilink1" title="chrono:c:localtime">localtime</a>, <a href="mktime" class="wikilink1" title="chrono:c:mktime">mktime</a>, <a href="strftime" class="wikilink1" title="chrono:c:strftime">strftime</a>
  75. </p>
  76. </div>
  77. <!-- EDIT4 SECTION "See also" [368-] --></div>
  78. </body>
  79. </html>