1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
6
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
7
<meta content="DateUtil,com.yahoo.astra.utils.DateUtil,DAYS_IN_APRIL,DAYS_IN_AUGUST,DAYS_IN_DECEMBER,DAYS_IN_FEBRUARY,DAYS_IN_FEBRUARY_LEAP_YEAR,DAYS_IN_JANUARY,DAYS_IN_JULY,DAYS_IN_JUNE,DAYS_IN_LEAP_YEAR,DAYS_IN_MARCH,DAYS_IN_MAY,DAYS_IN_NOVEMBER,DAYS_IN_OCTOBER,DAYS_IN_SEPTEMBER,DAYS_IN_YEAR,daysInMonths,months,countDays,getDateDifferenceByTimeUnit,getHoursIn12HourFormat,getMonthName,getShortMonthName,isLeapYear,roundDown,roundUp,timeCodeToUTC" name="keywords">
8
<title>com.yahoo.astra.utils.DateUtil</title>
11
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
13
asdocTitle = 'DateUtil - YUI Flash Component Documentation';
14
var baseRef = '../../../../';
15
window.onload = configPage;
17
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
19
<td align="left" class="titleTableTitle">YUI Flash Component Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a> | <a href="../../../../index.html?com/yahoo/astra/utils/DateUtil.html&com/yahoo/astra/utils/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
21
<tr class="titleTableRow2">
22
<td align="left" id="subTitle" class="titleTableSubTitle">Class DateUtil</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a> | <a href="#methodSummary">Methods</a> | <a href="#constantSummary">Constants</a></td>
24
<tr class="titleTableRow3">
25
<td colspan="2"> </td>
28
<script type="text/javascript" language="javascript">
30
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class DateUtil"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
32
<div class="MainContent">
33
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
35
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.yahoo.astra.utils</a></td>
38
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class DateUtil</td>
42
A collection of utility functions for the manipulation and inspection of date and time values.
46
<span class="classHeaderTableLabel">See also</span>
48
<div class="seeAlso">Date</div>
52
<a name="propertySummary"></a>
53
<div class="summarySection">
54
<div class="summaryTableTitle">Public Properties</div>
55
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
57
<th> </th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined by</th>
60
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#daysInMonths">daysInMonths</a> : Array<div class="summaryTableDescription">[static]
61
The number of days appearing in each month.</div>
62
</td><td class="summaryTableOwnerCol">DateUtil</td>
65
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#months">months</a> : Array<div class="summaryTableDescription">[static]
66
The names of months in English.</div>
67
</td><td class="summaryTableOwnerCol">DateUtil</td>
71
<a name="methodSummary"></a>
72
<div class="summarySection">
73
<div class="summaryTableTitle">Public Methods</div>
74
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
76
<th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
79
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
80
<div class="summarySignature">
81
<a class="signatureLink" href="#countDays()">countDays</a>(start:Date, end:Date):Number</div>
82
<div class="summaryTableDescription">[static]
83
Determines the number of days between the start value and the end value.</div>
84
</td><td class="summaryTableOwnerCol">DateUtil</td>
87
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
88
<div class="summarySignature">
89
<a class="signatureLink" href="#getDateDifferenceByTimeUnit()">getDateDifferenceByTimeUnit</a>(minDate:Date, maxDate:Date, timeUnit:String):Number</div>
90
<div class="summaryTableDescription">[static]</div>
91
</td><td class="summaryTableOwnerCol">DateUtil</td>
94
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
95
<div class="summarySignature">
96
<a class="signatureLink" href="#getHoursIn12HourFormat()">getHoursIn12HourFormat</a>(value:Date):Number</div>
97
<div class="summaryTableDescription">[static]
98
Determines the hours value in the range 1 - 12 for the AM/PM time format.</div>
99
</td><td class="summaryTableOwnerCol">DateUtil</td>
102
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
103
<div class="summarySignature">
104
<a class="signatureLink" href="#getMonthName()">getMonthName</a>(index:int):String</div>
105
<div class="summaryTableDescription">[static]
106
Gets the English name of the month specified by index.</div>
107
</td><td class="summaryTableOwnerCol">DateUtil</td>
110
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
111
<div class="summarySignature">
112
<a class="signatureLink" href="#getShortMonthName()">getShortMonthName</a>(index:int):String</div>
113
<div class="summaryTableDescription">[static]
114
Gets the abbreviated month name specified by index.</div>
115
</td><td class="summaryTableOwnerCol">DateUtil</td>
118
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
119
<div class="summarySignature">
120
<a class="signatureLink" href="#isLeapYear()">isLeapYear</a>(year:int):Boolean</div>
121
<div class="summaryTableDescription">[static]
122
Determines if the input year is a leap year (with 366 days, rather than 365).</div>
123
</td><td class="summaryTableOwnerCol">DateUtil</td>
126
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
127
<div class="summarySignature">
128
<a class="signatureLink" href="#roundDown()">roundDown</a>(dateToRound:Date, timeUnit:String = "day"):Date</div>
129
<div class="summaryTableDescription">[static]
130
Rounds a Date value down to the nearest value on the specified time unit.</div>
131
</td><td class="summaryTableOwnerCol">DateUtil</td>
134
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
135
<div class="summarySignature">
136
<a class="signatureLink" href="#roundUp()">roundUp</a>(dateToRound:Date, timeUnit:String = "day"):Date</div>
137
<div class="summaryTableDescription">[static]
138
Rounds a Date value up to the nearest value on the specified time unit.</div>
139
</td><td class="summaryTableOwnerCol">DateUtil</td>
142
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
143
<div class="summarySignature">
144
<a class="signatureLink" href="#timeCodeToUTC()">timeCodeToUTC</a>(timecode:String):String</div>
145
<div class="summaryTableDescription">[static]
146
Converts a time code to UTC.</div>
147
</td><td class="summaryTableOwnerCol">DateUtil</td>
151
<a name="constantSummary"></a>
152
<div class="summarySection">
153
<div class="summaryTableTitle">Public Constants</div>
154
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
156
<th> </th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined by</th>
159
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_APRIL">DAYS_IN_APRIL</a> : int = 30<div class="summaryTableDescription">[static]
160
The number of days in April.</div>
161
</td><td class="summaryTableOwnerCol">DateUtil</td>
164
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_AUGUST">DAYS_IN_AUGUST</a> : int = 31<div class="summaryTableDescription">[static]
165
The number of days in August.</div>
166
</td><td class="summaryTableOwnerCol">DateUtil</td>
169
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_DECEMBER">DAYS_IN_DECEMBER</a> : int = 31<div class="summaryTableDescription">[static]
170
The number of days in December.</div>
171
</td><td class="summaryTableOwnerCol">DateUtil</td>
174
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_FEBRUARY">DAYS_IN_FEBRUARY</a> : int = 28<div class="summaryTableDescription">[static]
175
The number of days in February on a standard year.</div>
176
</td><td class="summaryTableOwnerCol">DateUtil</td>
179
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_FEBRUARY_LEAP_YEAR">DAYS_IN_FEBRUARY_LEAP_YEAR</a> : int = 29<div class="summaryTableDescription">[static]
180
The number of days in February on a leap year.</div>
181
</td><td class="summaryTableOwnerCol">DateUtil</td>
184
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_JANUARY">DAYS_IN_JANUARY</a> : int = 31<div class="summaryTableDescription">[static]
185
The number of days in January.</div>
186
</td><td class="summaryTableOwnerCol">DateUtil</td>
189
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_JULY">DAYS_IN_JULY</a> : int = 31<div class="summaryTableDescription">[static]
190
The number of days in July.</div>
191
</td><td class="summaryTableOwnerCol">DateUtil</td>
194
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_JUNE">DAYS_IN_JUNE</a> : int = 30<div class="summaryTableDescription">[static]
195
The number of days in June.</div>
196
</td><td class="summaryTableOwnerCol">DateUtil</td>
199
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_LEAP_YEAR">DAYS_IN_LEAP_YEAR</a> : int = 366<div class="summaryTableDescription">[static]
200
The number of days in a leap year.</div>
201
</td><td class="summaryTableOwnerCol">DateUtil</td>
204
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_MARCH">DAYS_IN_MARCH</a> : int = 31<div class="summaryTableDescription">[static]
205
The number of days in March.</div>
206
</td><td class="summaryTableOwnerCol">DateUtil</td>
209
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_MAY">DAYS_IN_MAY</a> : int = 31<div class="summaryTableDescription">[static]
210
The number of days in May.</div>
211
</td><td class="summaryTableOwnerCol">DateUtil</td>
214
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_NOVEMBER">DAYS_IN_NOVEMBER</a> : int = 30<div class="summaryTableDescription">[static]
215
The number of days in November.</div>
216
</td><td class="summaryTableOwnerCol">DateUtil</td>
219
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_OCTOBER">DAYS_IN_OCTOBER</a> : int = 31<div class="summaryTableDescription">[static]
220
The number of days in October.</div>
221
</td><td class="summaryTableOwnerCol">DateUtil</td>
224
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_SEPTEMBER">DAYS_IN_SEPTEMBER</a> : int = 30<div class="summaryTableDescription">[static]
225
The number of days in September.</div>
226
</td><td class="summaryTableOwnerCol">DateUtil</td>
229
<td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DAYS_IN_YEAR">DAYS_IN_YEAR</a> : int = 365<div class="summaryTableDescription">[static]
230
The number of days in a standard year.</div>
231
</td><td class="summaryTableOwnerCol">DateUtil</td>
235
<script type="text/javascript" language="javascript">
239
<div class="MainContent">
240
<a name="propertyDetail"></a>
241
<div class="detailSectionHeader">Property detail</div>
242
<a name="daysInMonths"></a>
243
<table cellspacing="0" cellpadding="0" class="detailHeader">
245
<td class="detailHeaderName">daysInMonths</td><td class="detailHeaderType">property</td>
248
<div class="detailBody">
249
<code>public static var daysInMonths:Array</code><p>
250
The number of days appearing in each month. May be used for easy index lookups.
251
The stored value for February corresponds to a standard year--not a leap year.
253
<a name="months"></a>
254
<table cellspacing="0" cellpadding="0" class="detailHeader">
256
<td class="detailHeaderName">months</td><td class="detailHeaderType">property</td><td class="detailHeaderRule"> </td>
259
<div class="detailBody">
260
<code>public static var months:Array</code><p>
261
The names of months in English. The index in the array corresponds to the value of the month
264
<a name="methodDetail"></a>
265
<div class="detailSectionHeader">Method detail</div>
266
<a name="countDays()"></a>
267
<table cellspacing="0" cellpadding="0" class="detailHeader">
269
<td class="detailHeaderName">countDays</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
272
<div class="detailBody">
273
<code>public static function countDays(start:Date, end:Date):Number</code><p>
274
Determines the number of days between the start value and the end value. The result
275
may contain a fractional part, so cast it to int if a whole number is desired.
277
</p><span class="label">Parameters</span>
278
<table border="0" cellspacing="0" cellpadding="0">
280
<td width="20px"></td><td><code><span class="label">start</span>:Date</code> — start the starting date of the range
284
<td class="paramSpacer"> </td>
287
<td width="20px"></td><td><code><span class="label">end</span>:Date</code> — end the ending date of the range
292
<span class="label">Returns</span>
293
<table border="0" cellspacing="0" cellpadding="0">
295
<td width="20"></td><td><code>Number</code> — the number of dats between start and end
300
<a name="getDateDifferenceByTimeUnit()"></a>
301
<table cellspacing="0" cellpadding="0" class="detailHeader">
303
<td class="detailHeaderName">getDateDifferenceByTimeUnit</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
306
<div class="detailBody">
307
<code>public static function getDateDifferenceByTimeUnit(minDate:Date, maxDate:Date, timeUnit:String):Number</code><span class="label">Parameters</span>
308
<table border="0" cellspacing="0" cellpadding="0">
310
<td width="20px"></td><td><code><span class="label">minDate</span>:Date</code></td>
313
<td class="paramSpacer"> </td>
316
<td width="20px"></td><td><code><span class="label">maxDate</span>:Date</code></td>
319
<td class="paramSpacer"> </td>
322
<td width="20px"></td><td><code><span class="label">timeUnit</span>:String</code></td>
326
<span class="label">Returns</span>
327
<table border="0" cellspacing="0" cellpadding="0">
329
<td width="20"></td><td><code>Number</code></td>
333
<a name="getHoursIn12HourFormat()"></a>
334
<table cellspacing="0" cellpadding="0" class="detailHeader">
336
<td class="detailHeaderName">getHoursIn12HourFormat</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
339
<div class="detailBody">
340
<code>public static function getHoursIn12HourFormat(value:Date):Number</code><p>
341
Determines the hours value in the range 1 - 12 for the AM/PM time format.
343
</p><span class="label">Parameters</span>
344
<table border="0" cellspacing="0" cellpadding="0">
346
<td width="20px"></td><td><code><span class="label">value</span>:Date</code> — the input Date value
351
<span class="label">Returns</span>
352
<table border="0" cellspacing="0" cellpadding="0">
354
<td width="20"></td><td><code>Number</code> — the calculated hours value
359
<a name="getMonthName()"></a>
360
<table cellspacing="0" cellpadding="0" class="detailHeader">
362
<td class="detailHeaderName">getMonthName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
365
<div class="detailBody">
366
<code>public static function getMonthName(index:int):String</code><p>
367
Gets the English name of the month specified by index. This is the month value
368
as stored in a Date object.
370
</p><span class="label">Parameters</span>
371
<table border="0" cellspacing="0" cellpadding="0">
373
<td width="20px"></td><td><code><span class="label">index</span>:int</code> — index the numeric value of the month
378
<span class="label">Returns</span>
379
<table border="0" cellspacing="0" cellpadding="0">
381
<td width="20"></td><td><code>String</code> — the string name of the month in English
386
<a name="getShortMonthName()"></a>
387
<table cellspacing="0" cellpadding="0" class="detailHeader">
389
<td class="detailHeaderName">getShortMonthName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
392
<div class="detailBody">
393
<code>public static function getShortMonthName(index:int):String</code><p>
394
Gets the abbreviated month name specified by index. This is the month value
395
as stored in a Date object.
397
</p><span class="label">Parameters</span>
398
<table border="0" cellspacing="0" cellpadding="0">
400
<td width="20px"></td><td><code><span class="label">index</span>:int</code> — index the numeric value of the month
405
<span class="label">Returns</span>
406
<table border="0" cellspacing="0" cellpadding="0">
408
<td width="20"></td><td><code>String</code> — the short string name of the month in English
413
<a name="isLeapYear()"></a>
414
<table cellspacing="0" cellpadding="0" class="detailHeader">
416
<td class="detailHeaderName">isLeapYear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
419
<div class="detailBody">
420
<code>public static function isLeapYear(year:int):Boolean</code><p>
421
Determines if the input year is a leap year (with 366 days, rather than 365).
423
</p><span class="label">Parameters</span>
424
<table border="0" cellspacing="0" cellpadding="0">
426
<td width="20px"></td><td><code><span class="label">year</span>:int</code> — year the year value as stored in a Date object.
431
<span class="label">Returns</span>
432
<table border="0" cellspacing="0" cellpadding="0">
434
<td width="20"></td><td><code>Boolean</code> — true if the year input is a leap year
439
<a name="roundDown()"></a>
440
<table cellspacing="0" cellpadding="0" class="detailHeader">
442
<td class="detailHeaderName">roundDown</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
445
<div class="detailBody">
446
<code>public static function roundDown(dateToRound:Date, timeUnit:String = "day"):Date</code><p>
447
Rounds a Date value down to the nearest value on the specified time unit.
449
</p><span class="label">Parameters</span>
450
<table border="0" cellspacing="0" cellpadding="0">
452
<td width="20px"></td><td><code><span class="label">dateToRound</span>:Date</code></td>
455
<td class="paramSpacer"> </td>
458
<td width="20px"></td><td><code><span class="label">timeUnit</span>:String</code> (default = "<code>day</code>")<code></code></td>
462
<span class="label">Returns</span>
463
<table border="0" cellspacing="0" cellpadding="0">
465
<td width="20"></td><td><code>Date</code></td>
469
<span class="label">See also</span>
471
<div class="seeAlso">
472
<a href="../utils/TimeUnit.html" target="">com.yahoo.astra.utils.TimeUnit</a>
475
<a name="roundUp()"></a>
476
<table cellspacing="0" cellpadding="0" class="detailHeader">
478
<td class="detailHeaderName">roundUp</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
481
<div class="detailBody">
482
<code>public static function roundUp(dateToRound:Date, timeUnit:String = "day"):Date</code><p>
483
Rounds a Date value up to the nearest value on the specified time unit.
485
</p><span class="label">Parameters</span>
486
<table border="0" cellspacing="0" cellpadding="0">
488
<td width="20px"></td><td><code><span class="label">dateToRound</span>:Date</code></td>
491
<td class="paramSpacer"> </td>
494
<td width="20px"></td><td><code><span class="label">timeUnit</span>:String</code> (default = "<code>day</code>")<code></code></td>
498
<span class="label">Returns</span>
499
<table border="0" cellspacing="0" cellpadding="0">
501
<td width="20"></td><td><code>Date</code></td>
505
<span class="label">See also</span>
507
<div class="seeAlso">
508
<a href="../utils/TimeUnit.html" target="">com.yahoo.astra.utils.TimeUnit</a>
511
<a name="timeCodeToUTC()"></a>
512
<table cellspacing="0" cellpadding="0" class="detailHeader">
514
<td class="detailHeaderName">timeCodeToUTC</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
517
<div class="detailBody">
518
<code>public static function timeCodeToUTC(timecode:String):String</code><p>
519
Converts a time code to UTC.
521
</p><span class="label">Parameters</span>
522
<table border="0" cellspacing="0" cellpadding="0">
524
<td width="20px"></td><td><code><span class="label">timecode</span>:String</code> — the input timecode
529
<span class="label">Returns</span>
530
<table border="0" cellspacing="0" cellpadding="0">
532
<td width="20"></td><td><code>String</code> — the UTC value
537
<a name="constantDetail"></a>
538
<div class="detailSectionHeader">Constant detail</div>
539
<a name="DAYS_IN_APRIL"></a>
540
<table cellspacing="0" cellpadding="0" class="detailHeader">
542
<td class="detailHeaderName">DAYS_IN_APRIL</td><td class="detailHeaderType">constant</td>
545
<div class="detailBody">
546
<code>public static const DAYS_IN_APRIL:int = 30</code><p>
547
The number of days in April.
549
<a name="DAYS_IN_AUGUST"></a>
550
<table cellspacing="0" cellpadding="0" class="detailHeader">
552
<td class="detailHeaderName">DAYS_IN_AUGUST</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
555
<div class="detailBody">
556
<code>public static const DAYS_IN_AUGUST:int = 31</code><p>
557
The number of days in August.
559
<a name="DAYS_IN_DECEMBER"></a>
560
<table cellspacing="0" cellpadding="0" class="detailHeader">
562
<td class="detailHeaderName">DAYS_IN_DECEMBER</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
565
<div class="detailBody">
566
<code>public static const DAYS_IN_DECEMBER:int = 31</code><p>
567
The number of days in December.
569
<a name="DAYS_IN_FEBRUARY"></a>
570
<table cellspacing="0" cellpadding="0" class="detailHeader">
572
<td class="detailHeaderName">DAYS_IN_FEBRUARY</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
575
<div class="detailBody">
576
<code>public static const DAYS_IN_FEBRUARY:int = 28</code><p>
577
The number of days in February on a standard year.
579
<a name="DAYS_IN_FEBRUARY_LEAP_YEAR"></a>
580
<table cellspacing="0" cellpadding="0" class="detailHeader">
582
<td class="detailHeaderName">DAYS_IN_FEBRUARY_LEAP_YEAR</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
585
<div class="detailBody">
586
<code>public static const DAYS_IN_FEBRUARY_LEAP_YEAR:int = 29</code><p>
587
The number of days in February on a leap year.
589
<a name="DAYS_IN_JANUARY"></a>
590
<table cellspacing="0" cellpadding="0" class="detailHeader">
592
<td class="detailHeaderName">DAYS_IN_JANUARY</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
595
<div class="detailBody">
596
<code>public static const DAYS_IN_JANUARY:int = 31</code><p>
597
The number of days in January.
599
<a name="DAYS_IN_JULY"></a>
600
<table cellspacing="0" cellpadding="0" class="detailHeader">
602
<td class="detailHeaderName">DAYS_IN_JULY</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
605
<div class="detailBody">
606
<code>public static const DAYS_IN_JULY:int = 31</code><p>
607
The number of days in July.
609
<a name="DAYS_IN_JUNE"></a>
610
<table cellspacing="0" cellpadding="0" class="detailHeader">
612
<td class="detailHeaderName">DAYS_IN_JUNE</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
615
<div class="detailBody">
616
<code>public static const DAYS_IN_JUNE:int = 30</code><p>
617
The number of days in June.
619
<a name="DAYS_IN_LEAP_YEAR"></a>
620
<table cellspacing="0" cellpadding="0" class="detailHeader">
622
<td class="detailHeaderName">DAYS_IN_LEAP_YEAR</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
625
<div class="detailBody">
626
<code>public static const DAYS_IN_LEAP_YEAR:int = 366</code><p>
627
The number of days in a leap year.
629
<a name="DAYS_IN_MARCH"></a>
630
<table cellspacing="0" cellpadding="0" class="detailHeader">
632
<td class="detailHeaderName">DAYS_IN_MARCH</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
635
<div class="detailBody">
636
<code>public static const DAYS_IN_MARCH:int = 31</code><p>
637
The number of days in March.
639
<a name="DAYS_IN_MAY"></a>
640
<table cellspacing="0" cellpadding="0" class="detailHeader">
642
<td class="detailHeaderName">DAYS_IN_MAY</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
645
<div class="detailBody">
646
<code>public static const DAYS_IN_MAY:int = 31</code><p>
647
The number of days in May.
649
<a name="DAYS_IN_NOVEMBER"></a>
650
<table cellspacing="0" cellpadding="0" class="detailHeader">
652
<td class="detailHeaderName">DAYS_IN_NOVEMBER</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
655
<div class="detailBody">
656
<code>public static const DAYS_IN_NOVEMBER:int = 30</code><p>
657
The number of days in November.
659
<a name="DAYS_IN_OCTOBER"></a>
660
<table cellspacing="0" cellpadding="0" class="detailHeader">
662
<td class="detailHeaderName">DAYS_IN_OCTOBER</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
665
<div class="detailBody">
666
<code>public static const DAYS_IN_OCTOBER:int = 31</code><p>
667
The number of days in October.
669
<a name="DAYS_IN_SEPTEMBER"></a>
670
<table cellspacing="0" cellpadding="0" class="detailHeader">
672
<td class="detailHeaderName">DAYS_IN_SEPTEMBER</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
675
<div class="detailBody">
676
<code>public static const DAYS_IN_SEPTEMBER:int = 30</code><p>
677
The number of days in September.
679
<a name="DAYS_IN_YEAR"></a>
680
<table cellspacing="0" cellpadding="0" class="detailHeader">
682
<td class="detailHeaderName">DAYS_IN_YEAR</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule"> </td>
685
<div class="detailBody">
686
<code>public static const DAYS_IN_YEAR:int = 365</code><p>
687
The number of days in a standard year.
694
<center class="copyright">