index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Date-Utils Index</title>
  6. <!--[if lt IE 9]>
  7. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  8. <![endif]-->
  9. <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
  10. <link type="text/css" rel="stylesheet" href="styles/site.journal.css">
  11. </head>
  12. <body>
  13. <div class="container-fluid">
  14. <div class="navbar navbar-fixed-top navbar-inverse">
  15. <div class="navbar-inner">
  16. <a class="brand" href="index.html">Date-Utils</a>
  17. <ul class="nav">
  18. <li class="dropdown">
  19. <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b
  20. class="caret"></b></a>
  21. <ul class="dropdown-menu ">
  22. <li>
  23. <a href="Date.html">Date</a>
  24. </li>
  25. </ul>
  26. </li>
  27. </ul>
  28. </div>
  29. </div>
  30. <div class="row-fluid">
  31. <div class="span8">
  32. <div id="main">
  33. <span class="page-title">Index</span>
  34. <section class="readme-section">
  35. <article><h1>Date-Utils: Polyfills for the Date object</h1><p><a href="http://travis-ci.org/JerrySievert/date-utils"><img src="https://secure.travis-ci.org/JerrySievert/date-utils.png" alt="Build Status"></a></p>
  36. <h2>NOTE</h2><p>Version 2 Feature and Changes discussion is being held at https://github.com/JerrySievert/node-date-utils/issues/37</p>
  37. <h2>In a nutshell</h2><ul>
  38. <li>Micro-Framework adding missing functionality to the Date object</li>
  39. <li>Useable as a polyfill in the browser</li>
  40. <li>Useable as a polyfill in Node.js</li>
  41. <li>Works in CouchDB</li>
  42. </ul>
  43. <h2>Using within a Browser</h2><pre class="prettyprint source"><code>&lt;script type=&quot;text/javascript&quot; src=&quot;date-utils.min.js&quot;>&lt;/script></code></pre><h2>Using with Node.js</h2><pre class="prettyprint source"><code>$ npm install date-utils
  44. require('date-utils');</code></pre><p>Note: This did not work in the <code>REPL</code> before <code>Node.js 0.6</code> due to how <code>Node.js</code> handles context in the <code>REPL</code>.</p>
  45. <h2>Changing Languages</h2><pre class="prettyprint source"><code>require('date-utils').language(&quot;es&quot;)</code></pre><p>Supported languages:</p>
  46. <ul>
  47. <li>Spanish - &quot;es&quot;</li>
  48. <li>French - &quot;fr&quot;</li>
  49. <li>Portuguese Brazilian - &quot;pt-BR&quot;</li>
  50. </ul>
  51. <h2>Documentation</h2><p>Documentation (nearing completion) can be found at https://jerrysievert.github.io/date-utils</p>
  52. <h2>Development</h2><p>Make sure you have <a href="https://www.npmjs.org/package/gulp">gulp</a> installed (npm install gulp -g). After that hit <code>npm install</code> to get the dependencies. Finally, hit <code>gulp</code>. This will build the library initially. If you make changes to the library, it will compile the minified version automatically.</p>
  53. <h3>Testing</h3><pre class="prettyprint source"><code>$ npm test</code></pre><h3>Complexity and Minification</h3><pre class="prettyprint source"><code>$ gulp</code></pre></article>
  54. </section>
  55. </div>
  56. <div class="clearfix"></div>
  57. <footer>
  58. <span class="jsdoc-message">
  59. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
  60. on 2016-04-18T20:32:20-07:00 using the <a
  61. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
  62. </span>
  63. </footer>
  64. </div>
  65. <div class="span3">
  66. <div id="toc"></div>
  67. </div>
  68. <br clear="both">
  69. </div>
  70. </div>
  71. <!--<script src="scripts/sunlight.js"></script>-->
  72. <script src="scripts/docstrap.lib.js"></script>
  73. <script src="scripts/bootstrap-dropdown.js"></script>
  74. <script src="scripts/toc.js"></script>
  75. <script>
  76. $( function () {
  77. $( "[id*='$']" ).each( function () {
  78. var $this = $( this );
  79. $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
  80. } );
  81. $( "#toc" ).toc( {
  82. anchorName : function ( i, heading, prefix ) {
  83. return $( heading ).attr( "id" ) || ( prefix + i );
  84. },
  85. selectors : "h1,h2,h3,h4",
  86. showAndHide : false,
  87. scrollTo : "100px"
  88. } );
  89. $( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
  90. $( "#main span[id^='toc']" ).addClass( "toc-shim" );
  91. $( '.dropdown-toggle' ).dropdown();
  92. // $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
  93. $( ".tutorial-section pre, .readme-section pre" ).each( function () {
  94. var $this = $( this );
  95. var example = $this.find( "code" );
  96. exampleText = example.html();
  97. var lang = /{@lang (.*?)}/.exec( exampleText );
  98. if ( lang && lang[1] ) {
  99. exampleText = exampleText.replace( lang[0], "" );
  100. example.html( exampleText );
  101. lang = lang[1];
  102. } else {
  103. lang = "javascript";
  104. }
  105. if ( lang ) {
  106. $this
  107. .addClass( "sunlight-highlight-" + lang )
  108. .addClass( "linenums" )
  109. .html( example.html() );
  110. }
  111. } );
  112. Sunlight.highlightAll( {
  113. lineNumbers : true,
  114. showMenu : true,
  115. enableDoclinks : true
  116. } );
  117. } );
  118. </script>
  119. <!--Navigation and Symbol Display-->
  120. <!--Google Analytics-->
  121. </body>
  122. </html>