Date.html 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Date-Utils Class: Date</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. <h1 class="page-title">Class: Date</h1>
  34. <section>
  35. <header>
  36. <h2>
  37. Date
  38. </h2>
  39. </header>
  40. <article>
  41. <div class="container-overview">
  42. <dt>
  43. <h4 class="name" id="Date"><span class="type-signature"></span>new Date<span class="signature">()</span><span class="type-signature"></span></h4>
  44. </dt>
  45. <dd>
  46. <dl class="details">
  47. </dl>
  48. </dd>
  49. </div>
  50. <h3 class="subsection-title">Methods</h3>
  51. <dl>
  52. <dt>
  53. <h4 class="name" id="compare"><span class="type-signature">&lt;static> </span>compare<span class="signature">(date1, date2)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  54. </dt>
  55. <dd>
  56. <div class="description">
  57. <p>Compares two dates</p>
  58. </div>
  59. <h5>Parameters:</h5>
  60. <table class="params table table-striped">
  61. <thead>
  62. <tr>
  63. <th>Name</th>
  64. <th>Type</th>
  65. <th class="last">Description</th>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. <tr>
  70. <td class="name"><code>date1</code></td>
  71. <td class="type">
  72. <span class="param-type"><a href="Date.html">Date</a></span>
  73. </td>
  74. <td class="description last"><p>first date</p></td>
  75. </tr>
  76. <tr>
  77. <td class="name"><code>date2</code></td>
  78. <td class="type">
  79. <span class="param-type"><a href="Date.html">Date</a></span>
  80. </td>
  81. <td class="description last"><p>second date</p></td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. <dl class="details">
  86. </dl>
  87. <h5>Returns:</h5>
  88. <div class="param-desc">
  89. <p>-1 if date1 is less than date2, 0 if they are equal, 1 if date1 is more than date2</p>
  90. </div>
  91. <dl>
  92. <dt>
  93. Type
  94. </dt>
  95. <dd>
  96. <span class="param-type">Number</span>
  97. </dd>
  98. </dl>
  99. </dd>
  100. <dt>
  101. <h4 class="name" id="equals"><span class="type-signature">&lt;static> </span>equals<span class="signature">(date1, date2)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  102. </dt>
  103. <dd>
  104. <div class="description">
  105. <p>Compares two dates to the millisecond</p>
  106. </div>
  107. <h5>Parameters:</h5>
  108. <table class="params table table-striped">
  109. <thead>
  110. <tr>
  111. <th>Name</th>
  112. <th>Type</th>
  113. <th class="last">Description</th>
  114. </tr>
  115. </thead>
  116. <tbody>
  117. <tr>
  118. <td class="name"><code>date1</code></td>
  119. <td class="type">
  120. <span class="param-type"><a href="Date.html">Date</a></span>
  121. </td>
  122. <td class="description last"><p>first date</p></td>
  123. </tr>
  124. <tr>
  125. <td class="name"><code>date2</code></td>
  126. <td class="type">
  127. <span class="param-type"><a href="Date.html">Date</a></span>
  128. </td>
  129. <td class="description last"><p>second date</p></td>
  130. </tr>
  131. </tbody>
  132. </table>
  133. <dl class="details">
  134. </dl>
  135. <h5>Returns:</h5>
  136. <dl>
  137. <dt>
  138. Type
  139. </dt>
  140. <dd>
  141. <span class="param-type">Boolean</span>
  142. </dd>
  143. </dl>
  144. </dd>
  145. <dt>
  146. <h4 class="name" id="equalsDay"><span class="type-signature">&lt;static> </span>equalsDay<span class="signature">(date1, date2)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  147. </dt>
  148. <dd>
  149. <div class="description">
  150. <p>Compares two dates by day</p>
  151. </div>
  152. <h5>Parameters:</h5>
  153. <table class="params table table-striped">
  154. <thead>
  155. <tr>
  156. <th>Name</th>
  157. <th>Type</th>
  158. <th class="last">Description</th>
  159. </tr>
  160. </thead>
  161. <tbody>
  162. <tr>
  163. <td class="name"><code>date1</code></td>
  164. <td class="type">
  165. <span class="param-type"><a href="Date.html">Date</a></span>
  166. </td>
  167. <td class="description last"><p>first date</p></td>
  168. </tr>
  169. <tr>
  170. <td class="name"><code>date2</code></td>
  171. <td class="type">
  172. <span class="param-type"><a href="Date.html">Date</a></span>
  173. </td>
  174. <td class="description last"><p>second date</p></td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. <dl class="details">
  179. </dl>
  180. <h5>Returns:</h5>
  181. <dl>
  182. <dt>
  183. Type
  184. </dt>
  185. <dd>
  186. <span class="param-type">Boolean</span>
  187. </dd>
  188. </dl>
  189. </dd>
  190. <dt>
  191. <h4 class="name" id="getDayNumberFromName"><span class="type-signature">&lt;static> </span>getDayNumberFromName<span class="signature">(day)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  192. </dt>
  193. <dd>
  194. <div class="description">
  195. <p>Returns the day number for a day [0-6]</p>
  196. </div>
  197. <h5>Parameters:</h5>
  198. <table class="params table table-striped">
  199. <thead>
  200. <tr>
  201. <th>Name</th>
  202. <th>Type</th>
  203. <th class="last">Description</th>
  204. </tr>
  205. </thead>
  206. <tbody>
  207. <tr>
  208. <td class="name"><code>day</code></td>
  209. <td class="type">
  210. <span class="param-type">String</span>
  211. </td>
  212. <td class="description last"><p>day name</p></td>
  213. </tr>
  214. </tbody>
  215. </table>
  216. <dl class="details">
  217. </dl>
  218. <h5>Returns:</h5>
  219. <dl>
  220. <dt>
  221. Type
  222. </dt>
  223. <dd>
  224. <span class="param-type">Number</span>
  225. </dd>
  226. </dl>
  227. </dd>
  228. <dt>
  229. <h4 class="name" id="getDaysInMonth"><span class="type-signature">&lt;static> </span>getDaysInMonth<span class="signature">(year, month)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  230. </dt>
  231. <dd>
  232. <div class="description">
  233. <p>Returns the number of days in a month</p>
  234. </div>
  235. <h5>Parameters:</h5>
  236. <table class="params table table-striped">
  237. <thead>
  238. <tr>
  239. <th>Name</th>
  240. <th>Type</th>
  241. <th class="last">Description</th>
  242. </tr>
  243. </thead>
  244. <tbody>
  245. <tr>
  246. <td class="name"><code>year</code></td>
  247. <td class="type">
  248. <span class="param-type">Number</span>
  249. </td>
  250. <td class="description last"><p>year</p></td>
  251. </tr>
  252. <tr>
  253. <td class="name"><code>month</code></td>
  254. <td class="type">
  255. <span class="param-type">Number</span>
  256. </td>
  257. <td class="description last"><p>month</p></td>
  258. </tr>
  259. </tbody>
  260. </table>
  261. <dl class="details">
  262. </dl>
  263. <h5>Returns:</h5>
  264. <dl>
  265. <dt>
  266. Type
  267. </dt>
  268. <dd>
  269. <span class="param-type">Number</span>
  270. </dd>
  271. </dl>
  272. </dd>
  273. <dt>
  274. <h4 class="name" id="getMonthAbbrFromNumber"><span class="type-signature">&lt;static> </span>getMonthAbbrFromNumber<span class="signature">(month)</span><span class="type-signature"> &rarr; {String}</span></h4>
  275. </dt>
  276. <dd>
  277. <div class="description">
  278. <p>Returns the month name abbreviated for a month [0-11]</p>
  279. </div>
  280. <h5>Parameters:</h5>
  281. <table class="params table table-striped">
  282. <thead>
  283. <tr>
  284. <th>Name</th>
  285. <th>Type</th>
  286. <th class="last">Description</th>
  287. </tr>
  288. </thead>
  289. <tbody>
  290. <tr>
  291. <td class="name"><code>month</code></td>
  292. <td class="type">
  293. <span class="param-type">Number</span>
  294. </td>
  295. <td class="description last"><p>month</p></td>
  296. </tr>
  297. </tbody>
  298. </table>
  299. <dl class="details">
  300. </dl>
  301. <h5>Returns:</h5>
  302. <dl>
  303. <dt>
  304. Type
  305. </dt>
  306. <dd>
  307. <span class="param-type">String</span>
  308. </dd>
  309. </dl>
  310. </dd>
  311. <dt>
  312. <h4 class="name" id="getMonthNameFromNumber"><span class="type-signature">&lt;static> </span>getMonthNameFromNumber<span class="signature">(month)</span><span class="type-signature"> &rarr; {String}</span></h4>
  313. </dt>
  314. <dd>
  315. <div class="description">
  316. <p>Returns the month name for a month [0-11]</p>
  317. </div>
  318. <h5>Parameters:</h5>
  319. <table class="params table table-striped">
  320. <thead>
  321. <tr>
  322. <th>Name</th>
  323. <th>Type</th>
  324. <th class="last">Description</th>
  325. </tr>
  326. </thead>
  327. <tbody>
  328. <tr>
  329. <td class="name"><code>month</code></td>
  330. <td class="type">
  331. <span class="param-type">Number</span>
  332. </td>
  333. <td class="description last"><p>month</p></td>
  334. </tr>
  335. </tbody>
  336. </table>
  337. <dl class="details">
  338. </dl>
  339. <h5>Returns:</h5>
  340. <dl>
  341. <dt>
  342. Type
  343. </dt>
  344. <dd>
  345. <span class="param-type">String</span>
  346. </dd>
  347. </dl>
  348. </dd>
  349. <dt>
  350. <h4 class="name" id="getMonthNumberFromName"><span class="type-signature">&lt;static> </span>getMonthNumberFromName<span class="signature">(month)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  351. </dt>
  352. <dd>
  353. <div class="description">
  354. <p>Returns the day number for a month [0-11]</p>
  355. </div>
  356. <h5>Parameters:</h5>
  357. <table class="params table table-striped">
  358. <thead>
  359. <tr>
  360. <th>Name</th>
  361. <th>Type</th>
  362. <th class="last">Description</th>
  363. </tr>
  364. </thead>
  365. <tbody>
  366. <tr>
  367. <td class="name"><code>month</code></td>
  368. <td class="type">
  369. <span class="param-type">String</span>
  370. </td>
  371. <td class="description last"><p>month name</p></td>
  372. </tr>
  373. </tbody>
  374. </table>
  375. <dl class="details">
  376. </dl>
  377. <h5>Returns:</h5>
  378. <dl>
  379. <dt>
  380. Type
  381. </dt>
  382. <dd>
  383. <span class="param-type">Number</span>
  384. </dd>
  385. </dl>
  386. </dd>
  387. <dt>
  388. <h4 class="name" id="isLeapYear"><span class="type-signature">&lt;static> </span>isLeapYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  389. </dt>
  390. <dd>
  391. <div class="description">
  392. <p>Returns whether or not the year is a leap year</p>
  393. </div>
  394. <h5>Parameters:</h5>
  395. <table class="params table table-striped">
  396. <thead>
  397. <tr>
  398. <th>Name</th>
  399. <th>Type</th>
  400. <th class="last">Description</th>
  401. </tr>
  402. </thead>
  403. <tbody>
  404. <tr>
  405. <td class="name"><code>year</code></td>
  406. <td class="type">
  407. <span class="param-type">Number</span>
  408. </td>
  409. <td class="description last"><p>year</p></td>
  410. </tr>
  411. </tbody>
  412. </table>
  413. <dl class="details">
  414. </dl>
  415. <h5>Returns:</h5>
  416. <dl>
  417. <dt>
  418. Type
  419. </dt>
  420. <dd>
  421. <span class="param-type">Boolean</span>
  422. </dd>
  423. </dl>
  424. </dd>
  425. <dt>
  426. <h4 class="name" id="today"><span class="type-signature">&lt;static> </span>today<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  427. </dt>
  428. <dd>
  429. <div class="description">
  430. <p>Returns new instance of Date object with the date set to today and
  431. the time set to midnight</p>
  432. </div>
  433. <dl class="details">
  434. </dl>
  435. <h5>Returns:</h5>
  436. <div class="param-desc">
  437. <p>Today's Date</p>
  438. </div>
  439. <dl>
  440. <dt>
  441. Type
  442. </dt>
  443. <dd>
  444. <span class="param-type"><a href="Date.html">Date</a></span>
  445. </dd>
  446. </dl>
  447. </dd>
  448. <dt>
  449. <h4 class="name" id="tomorrow"><span class="type-signature">&lt;static> </span>tomorrow<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  450. </dt>
  451. <dd>
  452. <div class="description">
  453. <p>Returns new instance of Date object with the date set to tomorrow and
  454. the time set to midnight</p>
  455. </div>
  456. <dl class="details">
  457. </dl>
  458. <h5>Returns:</h5>
  459. <div class="param-desc">
  460. <p>Tomorrow's Date</p>
  461. </div>
  462. <dl>
  463. <dt>
  464. Type
  465. </dt>
  466. <dd>
  467. <span class="param-type"><a href="Date.html">Date</a></span>
  468. </dd>
  469. </dl>
  470. </dd>
  471. <dt>
  472. <h4 class="name" id="UTCtoday"><span class="type-signature">&lt;static> </span>UTCtoday<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  473. </dt>
  474. <dd>
  475. <div class="description">
  476. <p>Returns new instance of Date object with the date set to today and
  477. the time set to midnight in UTC</p>
  478. </div>
  479. <dl class="details">
  480. </dl>
  481. <h5>Returns:</h5>
  482. <div class="param-desc">
  483. <p>Today's Date in UTC</p>
  484. </div>
  485. <dl>
  486. <dt>
  487. Type
  488. </dt>
  489. <dd>
  490. <span class="param-type"><a href="Date.html">Date</a></span>
  491. </dd>
  492. </dl>
  493. </dd>
  494. <dt>
  495. <h4 class="name" id="UTCtomorrow"><span class="type-signature">&lt;static> </span>UTCtomorrow<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  496. </dt>
  497. <dd>
  498. <div class="description">
  499. <p>Returns new instance of Date object with the date set to tomorrow and
  500. the time set to midnight in UTC</p>
  501. </div>
  502. <dl class="details">
  503. </dl>
  504. <h5>Returns:</h5>
  505. <div class="param-desc">
  506. <p>Tomorrow's Date in UTC</p>
  507. </div>
  508. <dl>
  509. <dt>
  510. Type
  511. </dt>
  512. <dd>
  513. <span class="param-type"><a href="Date.html">Date</a></span>
  514. </dd>
  515. </dl>
  516. </dd>
  517. <dt>
  518. <h4 class="name" id="UTCyesterday"><span class="type-signature">&lt;static> </span>UTCyesterday<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  519. </dt>
  520. <dd>
  521. <div class="description">
  522. <p>Returns new instance of Date object with the date set to yesterday and
  523. the time set to midnight in UTC</p>
  524. </div>
  525. <dl class="details">
  526. </dl>
  527. <h5>Returns:</h5>
  528. <div class="param-desc">
  529. <p>Yesterday's Date in UTC</p>
  530. </div>
  531. <dl>
  532. <dt>
  533. Type
  534. </dt>
  535. <dd>
  536. <span class="param-type"><a href="Date.html">Date</a></span>
  537. </dd>
  538. </dl>
  539. </dd>
  540. <dt>
  541. <h4 class="name" id="validateDay"><span class="type-signature">&lt;static> </span>validateDay<span class="signature">(day, year, month)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  542. </dt>
  543. <dd>
  544. <div class="description">
  545. <p>Returns whether the day is valid</p>
  546. </div>
  547. <h5>Parameters:</h5>
  548. <table class="params table table-striped">
  549. <thead>
  550. <tr>
  551. <th>Name</th>
  552. <th>Type</th>
  553. <th class="last">Description</th>
  554. </tr>
  555. </thead>
  556. <tbody>
  557. <tr>
  558. <td class="name"><code>day</code></td>
  559. <td class="type">
  560. <span class="param-type">Number</span>
  561. </td>
  562. <td class="description last"><p>day of the month</p></td>
  563. </tr>
  564. <tr>
  565. <td class="name"><code>year</code></td>
  566. <td class="type">
  567. <span class="param-type">Number</span>
  568. </td>
  569. <td class="description last"><p>year</p></td>
  570. </tr>
  571. <tr>
  572. <td class="name"><code>month</code></td>
  573. <td class="type">
  574. <span class="param-type">Number</span>
  575. </td>
  576. <td class="description last"><p>month of the year [0-11]</p></td>
  577. </tr>
  578. </tbody>
  579. </table>
  580. <dl class="details">
  581. </dl>
  582. <h5>Returns:</h5>
  583. <dl>
  584. <dt>
  585. Type
  586. </dt>
  587. <dd>
  588. <span class="param-type">Boolean</span>
  589. </dd>
  590. </dl>
  591. </dd>
  592. <dt>
  593. <h4 class="name" id="validateHour"><span class="type-signature">&lt;static> </span>validateHour<span class="signature">(hour)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  594. </dt>
  595. <dd>
  596. <div class="description">
  597. <p>Returns whether the hour is valid [0-23]</p>
  598. </div>
  599. <h5>Parameters:</h5>
  600. <table class="params table table-striped">
  601. <thead>
  602. <tr>
  603. <th>Name</th>
  604. <th>Type</th>
  605. <th class="last">Description</th>
  606. </tr>
  607. </thead>
  608. <tbody>
  609. <tr>
  610. <td class="name"><code>hour</code></td>
  611. <td class="type">
  612. <span class="param-type">Number</span>
  613. </td>
  614. <td class="description last"><p>hour</p></td>
  615. </tr>
  616. </tbody>
  617. </table>
  618. <dl class="details">
  619. </dl>
  620. <h5>Returns:</h5>
  621. <dl>
  622. <dt>
  623. Type
  624. </dt>
  625. <dd>
  626. <span class="param-type">Boolean</span>
  627. </dd>
  628. </dl>
  629. </dd>
  630. <dt>
  631. <h4 class="name" id="validateMillisecond"><span class="type-signature">&lt;static> </span>validateMillisecond<span class="signature">(millisecond)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  632. </dt>
  633. <dd>
  634. <div class="description">
  635. <p>Returns whether the millisecond is valid</p>
  636. </div>
  637. <h5>Parameters:</h5>
  638. <table class="params table table-striped">
  639. <thead>
  640. <tr>
  641. <th>Name</th>
  642. <th>Type</th>
  643. <th class="last">Description</th>
  644. </tr>
  645. </thead>
  646. <tbody>
  647. <tr>
  648. <td class="name"><code>millisecond</code></td>
  649. <td class="type">
  650. <span class="param-type">Number</span>
  651. </td>
  652. <td class="description last"><p>millisecond</p></td>
  653. </tr>
  654. </tbody>
  655. </table>
  656. <dl class="details">
  657. </dl>
  658. <h5>Returns:</h5>
  659. <dl>
  660. <dt>
  661. Type
  662. </dt>
  663. <dd>
  664. <span class="param-type">Boolean</span>
  665. </dd>
  666. </dl>
  667. </dd>
  668. <dt>
  669. <h4 class="name" id="validateMinute"><span class="type-signature">&lt;static> </span>validateMinute<span class="signature">(minute)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  670. </dt>
  671. <dd>
  672. <div class="description">
  673. <p>Returns whether the minute is valid</p>
  674. </div>
  675. <h5>Parameters:</h5>
  676. <table class="params table table-striped">
  677. <thead>
  678. <tr>
  679. <th>Name</th>
  680. <th>Type</th>
  681. <th class="last">Description</th>
  682. </tr>
  683. </thead>
  684. <tbody>
  685. <tr>
  686. <td class="name"><code>minute</code></td>
  687. <td class="type">
  688. <span class="param-type">Number</span>
  689. </td>
  690. <td class="description last"><p>minute</p></td>
  691. </tr>
  692. </tbody>
  693. </table>
  694. <dl class="details">
  695. </dl>
  696. <h5>Returns:</h5>
  697. <dl>
  698. <dt>
  699. Type
  700. </dt>
  701. <dd>
  702. <span class="param-type">Boolean</span>
  703. </dd>
  704. </dl>
  705. </dd>
  706. <dt>
  707. <h4 class="name" id="validateMonth"><span class="type-signature">&lt;static> </span>validateMonth<span class="signature">(month)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  708. </dt>
  709. <dd>
  710. <div class="description">
  711. <p>Returns whether the month is valid [0-11]</p>
  712. </div>
  713. <h5>Parameters:</h5>
  714. <table class="params table table-striped">
  715. <thead>
  716. <tr>
  717. <th>Name</th>
  718. <th>Type</th>
  719. <th class="last">Description</th>
  720. </tr>
  721. </thead>
  722. <tbody>
  723. <tr>
  724. <td class="name"><code>month</code></td>
  725. <td class="type">
  726. <span class="param-type">Number</span>
  727. </td>
  728. <td class="description last"><p>month</p></td>
  729. </tr>
  730. </tbody>
  731. </table>
  732. <dl class="details">
  733. </dl>
  734. <h5>Returns:</h5>
  735. <dl>
  736. <dt>
  737. Type
  738. </dt>
  739. <dd>
  740. <span class="param-type">Boolean</span>
  741. </dd>
  742. </dl>
  743. </dd>
  744. <dt>
  745. <h4 class="name" id="validateSecond"><span class="type-signature">&lt;static> </span>validateSecond<span class="signature">(second)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  746. </dt>
  747. <dd>
  748. <div class="description">
  749. <p>Returns whether the second is valid</p>
  750. </div>
  751. <h5>Parameters:</h5>
  752. <table class="params table table-striped">
  753. <thead>
  754. <tr>
  755. <th>Name</th>
  756. <th>Type</th>
  757. <th class="last">Description</th>
  758. </tr>
  759. </thead>
  760. <tbody>
  761. <tr>
  762. <td class="name"><code>second</code></td>
  763. <td class="type">
  764. <span class="param-type">Number</span>
  765. </td>
  766. <td class="description last"><p>second</p></td>
  767. </tr>
  768. </tbody>
  769. </table>
  770. <dl class="details">
  771. </dl>
  772. <h5>Returns:</h5>
  773. <dl>
  774. <dt>
  775. Type
  776. </dt>
  777. <dd>
  778. <span class="param-type">Boolean</span>
  779. </dd>
  780. </dl>
  781. </dd>
  782. <dt>
  783. <h4 class="name" id="validateYear"><span class="type-signature">&lt;static> </span>validateYear<span class="signature">(year)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  784. </dt>
  785. <dd>
  786. <div class="description">
  787. <p>Returns whether the year is valid</p>
  788. </div>
  789. <h5>Parameters:</h5>
  790. <table class="params table table-striped">
  791. <thead>
  792. <tr>
  793. <th>Name</th>
  794. <th>Type</th>
  795. <th class="last">Description</th>
  796. </tr>
  797. </thead>
  798. <tbody>
  799. <tr>
  800. <td class="name"><code>year</code></td>
  801. <td class="type">
  802. <span class="param-type">Number</span>
  803. </td>
  804. <td class="description last"><p>year</p></td>
  805. </tr>
  806. </tbody>
  807. </table>
  808. <dl class="details">
  809. </dl>
  810. <h5>Returns:</h5>
  811. <dl>
  812. <dt>
  813. Type
  814. </dt>
  815. <dd>
  816. <span class="param-type">Boolean</span>
  817. </dd>
  818. </dl>
  819. </dd>
  820. <dt>
  821. <h4 class="name" id="yesterday"><span class="type-signature">&lt;static> </span>yesterday<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  822. </dt>
  823. <dd>
  824. <div class="description">
  825. <p>Returns new instance of Date object with the date set to yesterday and
  826. the time set to midnight</p>
  827. </div>
  828. <dl class="details">
  829. </dl>
  830. <h5>Returns:</h5>
  831. <div class="param-desc">
  832. <p>Yesterday's Date</p>
  833. </div>
  834. <dl>
  835. <dt>
  836. Type
  837. </dt>
  838. <dd>
  839. <span class="param-type"><a href="Date.html">Date</a></span>
  840. </dd>
  841. </dl>
  842. </dd>
  843. <dt>
  844. <h4 class="name" id="add"><span class="type-signature"></span>add<span class="signature">(additions)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  845. </dt>
  846. <dd>
  847. <div class="description">
  848. <p>Adds <code>milliseconds</code>, <code>seconds</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, <code>weeks</code>, <code>months</code>, and <code>years</code> and returns a new Date.
  849. Usage: <code>data.add({ &quot;seconds&quot;: 10, &quot;days&quot;: 1 })</code></p>
  850. </div>
  851. <h5>Parameters:</h5>
  852. <table class="params table table-striped">
  853. <thead>
  854. <tr>
  855. <th>Name</th>
  856. <th>Type</th>
  857. <th class="last">Description</th>
  858. </tr>
  859. </thead>
  860. <tbody>
  861. <tr>
  862. <td class="name"><code>additions</code></td>
  863. <td class="type">
  864. <span class="param-type">Object</span>
  865. </td>
  866. <td class="description last"></td>
  867. </tr>
  868. </tbody>
  869. </table>
  870. <dl class="details">
  871. </dl>
  872. <h5>Returns:</h5>
  873. <dl>
  874. <dt>
  875. Type
  876. </dt>
  877. <dd>
  878. <span class="param-type"><a href="Date.html">Date</a></span>
  879. </dd>
  880. </dl>
  881. </dd>
  882. <dt>
  883. <h4 class="name" id="addHours"><span class="type-signature"></span>addHours<span class="signature">(hours)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  884. </dt>
  885. <dd>
  886. <div class="description">
  887. <p>Adds hours to the Date and returns it</p>
  888. </div>
  889. <h5>Parameters:</h5>
  890. <table class="params table table-striped">
  891. <thead>
  892. <tr>
  893. <th>Name</th>
  894. <th>Type</th>
  895. <th class="last">Description</th>
  896. </tr>
  897. </thead>
  898. <tbody>
  899. <tr>
  900. <td class="name"><code>hours</code></td>
  901. <td class="type">
  902. <span class="param-type">Number</span>
  903. </td>
  904. <td class="description last"><p>Number of hours to add</p></td>
  905. </tr>
  906. </tbody>
  907. </table>
  908. <dl class="details">
  909. <dt class="important tag-deprecated">Deprecated:</dt>
  910. <dd>
  911. <ul class="dummy">
  912. <li>Will be deprecated in version 2.0 in favor of add</li>
  913. </ul>
  914. </dd>
  915. </dl>
  916. <h5>Returns:</h5>
  917. <dl>
  918. <dt>
  919. Type
  920. </dt>
  921. <dd>
  922. <span class="param-type"><a href="Date.html">Date</a></span>
  923. </dd>
  924. </dl>
  925. </dd>
  926. <dt>
  927. <h4 class="name" id="addMilliseconds"><span class="type-signature"></span>addMilliseconds<span class="signature">(milliseconds)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  928. </dt>
  929. <dd>
  930. <div class="description">
  931. <p>Adds milliseconds to the Date and returns it</p>
  932. </div>
  933. <h5>Parameters:</h5>
  934. <table class="params table table-striped">
  935. <thead>
  936. <tr>
  937. <th>Name</th>
  938. <th>Type</th>
  939. <th class="last">Description</th>
  940. </tr>
  941. </thead>
  942. <tbody>
  943. <tr>
  944. <td class="name"><code>milliseconds</code></td>
  945. <td class="type">
  946. <span class="param-type">Number</span>
  947. </td>
  948. <td class="description last"><p>Number of milliseconds to add</p></td>
  949. </tr>
  950. </tbody>
  951. </table>
  952. <dl class="details">
  953. <dt class="important tag-deprecated">Deprecated:</dt>
  954. <dd>
  955. <ul class="dummy">
  956. <li>Will be deprecated in version 2.0 in favor of add</li>
  957. </ul>
  958. </dd>
  959. </dl>
  960. <h5>Returns:</h5>
  961. <dl>
  962. <dt>
  963. Type
  964. </dt>
  965. <dd>
  966. <span class="param-type"><a href="Date.html">Date</a></span>
  967. </dd>
  968. </dl>
  969. </dd>
  970. <dt>
  971. <h4 class="name" id="addMinutes"><span class="type-signature"></span>addMinutes<span class="signature">(minutes)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  972. </dt>
  973. <dd>
  974. <div class="description">
  975. <p>Adds minutes to the Date and returns it</p>
  976. </div>
  977. <h5>Parameters:</h5>
  978. <table class="params table table-striped">
  979. <thead>
  980. <tr>
  981. <th>Name</th>
  982. <th>Type</th>
  983. <th class="last">Description</th>
  984. </tr>
  985. </thead>
  986. <tbody>
  987. <tr>
  988. <td class="name"><code>minutes</code></td>
  989. <td class="type">
  990. <span class="param-type">Number</span>
  991. </td>
  992. <td class="description last"><p>Number of minutes to add</p></td>
  993. </tr>
  994. </tbody>
  995. </table>
  996. <dl class="details">
  997. <dt class="important tag-deprecated">Deprecated:</dt>
  998. <dd>
  999. <ul class="dummy">
  1000. <li>Will be deprecated in version 2.0 in favor of add</li>
  1001. </ul>
  1002. </dd>
  1003. </dl>
  1004. <h5>Returns:</h5>
  1005. <dl>
  1006. <dt>
  1007. Type
  1008. </dt>
  1009. <dd>
  1010. <span class="param-type"><a href="Date.html">Date</a></span>
  1011. </dd>
  1012. </dl>
  1013. </dd>
  1014. <dt>
  1015. <h4 class="name" id="addMonths"><span class="type-signature"></span>addMonths<span class="signature">(months)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1016. </dt>
  1017. <dd>
  1018. <div class="description">
  1019. <p>Adds months to the Date and returns it</p>
  1020. </div>
  1021. <h5>Parameters:</h5>
  1022. <table class="params table table-striped">
  1023. <thead>
  1024. <tr>
  1025. <th>Name</th>
  1026. <th>Type</th>
  1027. <th class="last">Description</th>
  1028. </tr>
  1029. </thead>
  1030. <tbody>
  1031. <tr>
  1032. <td class="name"><code>months</code></td>
  1033. <td class="type">
  1034. <span class="param-type">Number</span>
  1035. </td>
  1036. <td class="description last"><p>Number of months to add</p></td>
  1037. </tr>
  1038. </tbody>
  1039. </table>
  1040. <dl class="details">
  1041. <dt class="important tag-deprecated">Deprecated:</dt>
  1042. <dd>
  1043. <ul class="dummy">
  1044. <li>Will be deprecated in version 2.0 in favor of add</li>
  1045. </ul>
  1046. </dd>
  1047. </dl>
  1048. <h5>Returns:</h5>
  1049. <dl>
  1050. <dt>
  1051. Type
  1052. </dt>
  1053. <dd>
  1054. <span class="param-type"><a href="Date.html">Date</a></span>
  1055. </dd>
  1056. </dl>
  1057. </dd>
  1058. <dt>
  1059. <h4 class="name" id="addSeconds"><span class="type-signature"></span>addSeconds<span class="signature">(seconds)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1060. </dt>
  1061. <dd>
  1062. <div class="description">
  1063. <p>Adds seconds to the Date and returns it</p>
  1064. </div>
  1065. <h5>Parameters:</h5>
  1066. <table class="params table table-striped">
  1067. <thead>
  1068. <tr>
  1069. <th>Name</th>
  1070. <th>Type</th>
  1071. <th class="last">Description</th>
  1072. </tr>
  1073. </thead>
  1074. <tbody>
  1075. <tr>
  1076. <td class="name"><code>seconds</code></td>
  1077. <td class="type">
  1078. <span class="param-type">Number</span>
  1079. </td>
  1080. <td class="description last"><p>Number of seconds to add</p></td>
  1081. </tr>
  1082. </tbody>
  1083. </table>
  1084. <dl class="details">
  1085. <dt class="important tag-deprecated">Deprecated:</dt>
  1086. <dd>
  1087. <ul class="dummy">
  1088. <li>Will be deprecated in version 2.0 in favor of add</li>
  1089. </ul>
  1090. </dd>
  1091. </dl>
  1092. <h5>Returns:</h5>
  1093. <dl>
  1094. <dt>
  1095. Type
  1096. </dt>
  1097. <dd>
  1098. <span class="param-type"><a href="Date.html">Date</a></span>
  1099. </dd>
  1100. </dl>
  1101. </dd>
  1102. <dt>
  1103. <h4 class="name" id="addSeconds"><span class="type-signature"></span>addSeconds<span class="signature">(days)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1104. </dt>
  1105. <dd>
  1106. <div class="description">
  1107. <p>Adds days to the Date and returns it</p>
  1108. </div>
  1109. <h5>Parameters:</h5>
  1110. <table class="params table table-striped">
  1111. <thead>
  1112. <tr>
  1113. <th>Name</th>
  1114. <th>Type</th>
  1115. <th class="last">Description</th>
  1116. </tr>
  1117. </thead>
  1118. <tbody>
  1119. <tr>
  1120. <td class="name"><code>days</code></td>
  1121. <td class="type">
  1122. <span class="param-type">Number</span>
  1123. </td>
  1124. <td class="description last"><p>Number of days to add</p></td>
  1125. </tr>
  1126. </tbody>
  1127. </table>
  1128. <dl class="details">
  1129. <dt class="important tag-deprecated">Deprecated:</dt>
  1130. <dd>
  1131. <ul class="dummy">
  1132. <li>Will be deprecated in version 2.0 in favor of add</li>
  1133. </ul>
  1134. </dd>
  1135. </dl>
  1136. <h5>Returns:</h5>
  1137. <dl>
  1138. <dt>
  1139. Type
  1140. </dt>
  1141. <dd>
  1142. <span class="param-type"><a href="Date.html">Date</a></span>
  1143. </dd>
  1144. </dl>
  1145. </dd>
  1146. <dt>
  1147. <h4 class="name" id="addWeekdays"><span class="type-signature"></span>addWeekdays<span class="signature">(weekdays)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1148. </dt>
  1149. <dd>
  1150. <div class="description">
  1151. <p>Adds weekdays based on a Mon-Fri work schedule and returns it</p>
  1152. </div>
  1153. <h5>Parameters:</h5>
  1154. <table class="params table table-striped">
  1155. <thead>
  1156. <tr>
  1157. <th>Name</th>
  1158. <th>Type</th>
  1159. <th class="last">Description</th>
  1160. </tr>
  1161. </thead>
  1162. <tbody>
  1163. <tr>
  1164. <td class="name"><code>weekdays</code></td>
  1165. <td class="type">
  1166. <span class="param-type">Number</span>
  1167. </td>
  1168. <td class="description last"><p>Number of weekdays to add</p></td>
  1169. </tr>
  1170. </tbody>
  1171. </table>
  1172. <dl class="details">
  1173. </dl>
  1174. <h5>Returns:</h5>
  1175. <dl>
  1176. <dt>
  1177. Type
  1178. </dt>
  1179. <dd>
  1180. <span class="param-type"><a href="Date.html">Date</a></span>
  1181. </dd>
  1182. </dl>
  1183. </dd>
  1184. <dt>
  1185. <h4 class="name" id="addWeeks"><span class="type-signature"></span>addWeeks<span class="signature">(weeks)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1186. </dt>
  1187. <dd>
  1188. <div class="description">
  1189. <p>Adds weeks to the Date and returns it</p>
  1190. </div>
  1191. <h5>Parameters:</h5>
  1192. <table class="params table table-striped">
  1193. <thead>
  1194. <tr>
  1195. <th>Name</th>
  1196. <th>Type</th>
  1197. <th class="last">Description</th>
  1198. </tr>
  1199. </thead>
  1200. <tbody>
  1201. <tr>
  1202. <td class="name"><code>weeks</code></td>
  1203. <td class="type">
  1204. <span class="param-type">Number</span>
  1205. </td>
  1206. <td class="description last"><p>Number of weeks to add</p></td>
  1207. </tr>
  1208. </tbody>
  1209. </table>
  1210. <dl class="details">
  1211. <dt class="important tag-deprecated">Deprecated:</dt>
  1212. <dd>
  1213. <ul class="dummy">
  1214. <li>Will be deprecated in version 2.0 in favor of add</li>
  1215. </ul>
  1216. </dd>
  1217. </dl>
  1218. <h5>Returns:</h5>
  1219. <dl>
  1220. <dt>
  1221. Type
  1222. </dt>
  1223. <dd>
  1224. <span class="param-type"><a href="Date.html">Date</a></span>
  1225. </dd>
  1226. </dl>
  1227. </dd>
  1228. <dt>
  1229. <h4 class="name" id="addYears"><span class="type-signature"></span>addYears<span class="signature">(years)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1230. </dt>
  1231. <dd>
  1232. <div class="description">
  1233. <p>Adds years to the Date and returns it</p>
  1234. </div>
  1235. <h5>Parameters:</h5>
  1236. <table class="params table table-striped">
  1237. <thead>
  1238. <tr>
  1239. <th>Name</th>
  1240. <th>Type</th>
  1241. <th class="last">Description</th>
  1242. </tr>
  1243. </thead>
  1244. <tbody>
  1245. <tr>
  1246. <td class="name"><code>years</code></td>
  1247. <td class="type">
  1248. <span class="param-type">Number</span>
  1249. </td>
  1250. <td class="description last"><p>Number of years to add</p></td>
  1251. </tr>
  1252. </tbody>
  1253. </table>
  1254. <dl class="details">
  1255. <dt class="important tag-deprecated">Deprecated:</dt>
  1256. <dd>
  1257. <ul class="dummy">
  1258. <li>Will be deprecated in version 2.0 in favor of add</li>
  1259. </ul>
  1260. </dd>
  1261. </dl>
  1262. <h5>Returns:</h5>
  1263. <dl>
  1264. <dt>
  1265. Type
  1266. </dt>
  1267. <dd>
  1268. <span class="param-type"><a href="Date.html">Date</a></span>
  1269. </dd>
  1270. </dl>
  1271. </dd>
  1272. <dt>
  1273. <h4 class="name" id="between"><span class="type-signature"></span>between<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1274. </dt>
  1275. <dd>
  1276. <div class="description">
  1277. <p>Returns whether this Date is between a start and end date</p>
  1278. </div>
  1279. <dl class="details">
  1280. </dl>
  1281. <h5>Returns:</h5>
  1282. <dl>
  1283. <dt>
  1284. Type
  1285. </dt>
  1286. <dd>
  1287. <span class="param-type">Boolean</span>
  1288. </dd>
  1289. </dl>
  1290. </dd>
  1291. <dt>
  1292. <h4 class="name" id="clearTime"><span class="type-signature"></span>clearTime<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1293. </dt>
  1294. <dd>
  1295. <div class="description">
  1296. <p>Sets the time to 00:00:00.0000 and returns a new Date object</p>
  1297. </div>
  1298. <dl class="details">
  1299. </dl>
  1300. <h5>Returns:</h5>
  1301. <dl>
  1302. <dt>
  1303. Type
  1304. </dt>
  1305. <dd>
  1306. <span class="param-type"><a href="Date.html">Date</a></span>
  1307. </dd>
  1308. </dl>
  1309. </dd>
  1310. <dt>
  1311. <h4 class="name" id="clearUTCTime"><span class="type-signature"></span>clearUTCTime<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1312. </dt>
  1313. <dd>
  1314. <div class="description">
  1315. <p>Sets the time to 00:00:00.0000 and returns a new Date object with set to UTC</p>
  1316. </div>
  1317. <dl class="details">
  1318. </dl>
  1319. <h5>Returns:</h5>
  1320. <dl>
  1321. <dt>
  1322. Type
  1323. </dt>
  1324. <dd>
  1325. <span class="param-type"><a href="Date.html">Date</a></span>
  1326. </dd>
  1327. </dl>
  1328. </dd>
  1329. <dt>
  1330. <h4 class="name" id="clone"><span class="type-signature"></span>clone<span class="signature">()</span><span class="type-signature"></span></h4>
  1331. </dt>
  1332. <dd>
  1333. <div class="description">
  1334. <p>Returns a cloned copy of the current Date</p>
  1335. </div>
  1336. <dl class="details">
  1337. </dl>
  1338. </dd>
  1339. <dt>
  1340. <h4 class="name" id="compareTo"><span class="type-signature"></span>compareTo<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1341. </dt>
  1342. <dd>
  1343. <div class="description">
  1344. <p>Compares a Date to this Date</p>
  1345. </div>
  1346. <h5>Parameters:</h5>
  1347. <table class="params table table-striped">
  1348. <thead>
  1349. <tr>
  1350. <th>Name</th>
  1351. <th>Type</th>
  1352. <th class="last">Description</th>
  1353. </tr>
  1354. </thead>
  1355. <tbody>
  1356. <tr>
  1357. <td class="name"><code>Date</code></td>
  1358. <td class="type">
  1359. <span class="param-type"><a href="Date.html">Date</a></span>
  1360. </td>
  1361. <td class="description last"><p>to compare to</p></td>
  1362. </tr>
  1363. </tbody>
  1364. </table>
  1365. <dl class="details">
  1366. </dl>
  1367. <h5>Returns:</h5>
  1368. <div class="param-desc">
  1369. <p>-1 if less than date, 0 if they are equal, 1 if more than date</p>
  1370. </div>
  1371. <dl>
  1372. <dt>
  1373. Type
  1374. </dt>
  1375. <dd>
  1376. <span class="param-type">Number</span>
  1377. </dd>
  1378. </dl>
  1379. </dd>
  1380. <dt>
  1381. <h4 class="name" id="equals"><span class="type-signature"></span>equals<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1382. </dt>
  1383. <dd>
  1384. <div class="description">
  1385. <p>Compares a Date and time to this Date and time for equality</p>
  1386. </div>
  1387. <h5>Parameters:</h5>
  1388. <table class="params table table-striped">
  1389. <thead>
  1390. <tr>
  1391. <th>Name</th>
  1392. <th>Type</th>
  1393. <th class="last">Description</th>
  1394. </tr>
  1395. </thead>
  1396. <tbody>
  1397. <tr>
  1398. <td class="name"><code>Date</code></td>
  1399. <td class="type">
  1400. <span class="param-type"><a href="Date.html">Date</a></span>
  1401. </td>
  1402. <td class="description last"><p>to compare to</p></td>
  1403. </tr>
  1404. </tbody>
  1405. </table>
  1406. <dl class="details">
  1407. </dl>
  1408. <h5>Returns:</h5>
  1409. <dl>
  1410. <dt>
  1411. Type
  1412. </dt>
  1413. <dd>
  1414. <span class="param-type">Boolean</span>
  1415. </dd>
  1416. </dl>
  1417. </dd>
  1418. <dt>
  1419. <h4 class="name" id="equalsDay"><span class="type-signature"></span>equalsDay<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1420. </dt>
  1421. <dd>
  1422. <div class="description">
  1423. <p>Compares a Date to this Date for equality</p>
  1424. </div>
  1425. <h5>Parameters:</h5>
  1426. <table class="params table table-striped">
  1427. <thead>
  1428. <tr>
  1429. <th>Name</th>
  1430. <th>Type</th>
  1431. <th class="last">Description</th>
  1432. </tr>
  1433. </thead>
  1434. <tbody>
  1435. <tr>
  1436. <td class="name"><code>Date</code></td>
  1437. <td class="type">
  1438. <span class="param-type"><a href="Date.html">Date</a></span>
  1439. </td>
  1440. <td class="description last"><p>to compare to</p></td>
  1441. </tr>
  1442. </tbody>
  1443. </table>
  1444. <dl class="details">
  1445. </dl>
  1446. <h5>Returns:</h5>
  1447. <dl>
  1448. <dt>
  1449. Type
  1450. </dt>
  1451. <dd>
  1452. <span class="param-type">Boolean</span>
  1453. </dd>
  1454. </dl>
  1455. </dd>
  1456. <dt>
  1457. <h4 class="name" id="getDaysBetween"><span class="type-signature"></span>getDaysBetween<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1458. </dt>
  1459. <dd>
  1460. <div class="description">
  1461. <p>Returns the number of days between this Date and the Date passed in</p>
  1462. </div>
  1463. <h5>Parameters:</h5>
  1464. <table class="params table table-striped">
  1465. <thead>
  1466. <tr>
  1467. <th>Name</th>
  1468. <th>Type</th>
  1469. <th class="last">Description</th>
  1470. </tr>
  1471. </thead>
  1472. <tbody>
  1473. <tr>
  1474. <td class="name"><code>Date</code></td>
  1475. <td class="type">
  1476. <span class="param-type"><a href="Date.html">Date</a></span>
  1477. </td>
  1478. <td class="description last"><p>to compare to</p></td>
  1479. </tr>
  1480. </tbody>
  1481. </table>
  1482. <dl class="details">
  1483. </dl>
  1484. <h5>Returns:</h5>
  1485. <dl>
  1486. <dt>
  1487. Type
  1488. </dt>
  1489. <dd>
  1490. <span class="param-type">Number</span>
  1491. </dd>
  1492. </dl>
  1493. </dd>
  1494. <dt>
  1495. <h4 class="name" id="getFullWeekNumber"><span class="type-signature"></span>getFullWeekNumber<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1496. </dt>
  1497. <dd>
  1498. <div class="description">
  1499. <p>Returns the week number of this Date, zero padded</p>
  1500. </div>
  1501. <dl class="details">
  1502. </dl>
  1503. <h5>Returns:</h5>
  1504. <dl>
  1505. <dt>
  1506. Type
  1507. </dt>
  1508. <dd>
  1509. <span class="param-type">Number</span>
  1510. </dd>
  1511. </dl>
  1512. </dd>
  1513. <dt>
  1514. <h4 class="name" id="getHoursBetween"><span class="type-signature"></span>getHoursBetween<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1515. </dt>
  1516. <dd>
  1517. <div class="description">
  1518. <p>Returns the number of hours between this Date and the Date passed in</p>
  1519. </div>
  1520. <h5>Parameters:</h5>
  1521. <table class="params table table-striped">
  1522. <thead>
  1523. <tr>
  1524. <th>Name</th>
  1525. <th>Type</th>
  1526. <th class="last">Description</th>
  1527. </tr>
  1528. </thead>
  1529. <tbody>
  1530. <tr>
  1531. <td class="name"><code>Date</code></td>
  1532. <td class="type">
  1533. <span class="param-type"><a href="Date.html">Date</a></span>
  1534. </td>
  1535. <td class="description last"><p>to compare to</p></td>
  1536. </tr>
  1537. </tbody>
  1538. </table>
  1539. <dl class="details">
  1540. </dl>
  1541. <h5>Returns:</h5>
  1542. <dl>
  1543. <dt>
  1544. Type
  1545. </dt>
  1546. <dd>
  1547. <span class="param-type">Number</span>
  1548. </dd>
  1549. </dl>
  1550. </dd>
  1551. <dt>
  1552. <h4 class="name" id="getLastMonthName"><span class="type-signature"></span>getLastMonthName<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
  1553. </dt>
  1554. <dd>
  1555. <div class="description">
  1556. <p>Returns the name of last month</p>
  1557. </div>
  1558. <dl class="details">
  1559. </dl>
  1560. <h5>Returns:</h5>
  1561. <dl>
  1562. <dt>
  1563. Type
  1564. </dt>
  1565. <dd>
  1566. <span class="param-type">String</span>
  1567. </dd>
  1568. </dl>
  1569. </dd>
  1570. <dt>
  1571. <h4 class="name" id="getMillisecondsBetween"><span class="type-signature"></span>getMillisecondsBetween<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1572. </dt>
  1573. <dd>
  1574. <div class="description">
  1575. <p>Returns the number of milliseconds between this Date and the Date passed in</p>
  1576. </div>
  1577. <h5>Parameters:</h5>
  1578. <table class="params table table-striped">
  1579. <thead>
  1580. <tr>
  1581. <th>Name</th>
  1582. <th>Type</th>
  1583. <th class="last">Description</th>
  1584. </tr>
  1585. </thead>
  1586. <tbody>
  1587. <tr>
  1588. <td class="name"><code>Date</code></td>
  1589. <td class="type">
  1590. <span class="param-type"><a href="Date.html">Date</a></span>
  1591. </td>
  1592. <td class="description last"><p>to compare to</p></td>
  1593. </tr>
  1594. </tbody>
  1595. </table>
  1596. <dl class="details">
  1597. </dl>
  1598. <h5>Returns:</h5>
  1599. <dl>
  1600. <dt>
  1601. Type
  1602. </dt>
  1603. <dd>
  1604. <span class="param-type">Number</span>
  1605. </dd>
  1606. </dl>
  1607. </dd>
  1608. <dt>
  1609. <h4 class="name" id="getMinutesBetween"><span class="type-signature"></span>getMinutesBetween<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1610. </dt>
  1611. <dd>
  1612. <div class="description">
  1613. <p>Returns the number of minutes between this Date and the Date passed in</p>
  1614. </div>
  1615. <h5>Parameters:</h5>
  1616. <table class="params table table-striped">
  1617. <thead>
  1618. <tr>
  1619. <th>Name</th>
  1620. <th>Type</th>
  1621. <th class="last">Description</th>
  1622. </tr>
  1623. </thead>
  1624. <tbody>
  1625. <tr>
  1626. <td class="name"><code>Date</code></td>
  1627. <td class="type">
  1628. <span class="param-type"><a href="Date.html">Date</a></span>
  1629. </td>
  1630. <td class="description last"><p>to compare to</p></td>
  1631. </tr>
  1632. </tbody>
  1633. </table>
  1634. <dl class="details">
  1635. </dl>
  1636. <h5>Returns:</h5>
  1637. <dl>
  1638. <dt>
  1639. Type
  1640. </dt>
  1641. <dd>
  1642. <span class="param-type">Number</span>
  1643. </dd>
  1644. </dl>
  1645. </dd>
  1646. <dt>
  1647. <h4 class="name" id="getMonthAbbr"><span class="type-signature"></span>getMonthAbbr<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
  1648. </dt>
  1649. <dd>
  1650. <div class="description">
  1651. <p>Returns the abbreviated month name</p>
  1652. </div>
  1653. <dl class="details">
  1654. </dl>
  1655. <h5>Returns:</h5>
  1656. <dl>
  1657. <dt>
  1658. Type
  1659. </dt>
  1660. <dd>
  1661. <span class="param-type">String</span>
  1662. </dd>
  1663. </dl>
  1664. </dd>
  1665. <dt>
  1666. <h4 class="name" id="getMonthName"><span class="type-signature"></span>getMonthName<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
  1667. </dt>
  1668. <dd>
  1669. <div class="description">
  1670. <p>Returns the month name</p>
  1671. </div>
  1672. <dl class="details">
  1673. </dl>
  1674. <h5>Returns:</h5>
  1675. <dl>
  1676. <dt>
  1677. Type
  1678. </dt>
  1679. <dd>
  1680. <span class="param-type">String</span>
  1681. </dd>
  1682. </dl>
  1683. </dd>
  1684. <dt>
  1685. <h4 class="name" id="getMonthsBetween"><span class="type-signature"></span>getMonthsBetween<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1686. </dt>
  1687. <dd>
  1688. <div class="description">
  1689. <p>Returns the number of months between this Date and the Date passed in</p>
  1690. </div>
  1691. <h5>Parameters:</h5>
  1692. <table class="params table table-striped">
  1693. <thead>
  1694. <tr>
  1695. <th>Name</th>
  1696. <th>Type</th>
  1697. <th class="last">Description</th>
  1698. </tr>
  1699. </thead>
  1700. <tbody>
  1701. <tr>
  1702. <td class="name"><code>Date</code></td>
  1703. <td class="type">
  1704. <span class="param-type"><a href="Date.html">Date</a></span>
  1705. </td>
  1706. <td class="description last"><p>to compare to</p></td>
  1707. </tr>
  1708. </tbody>
  1709. </table>
  1710. <dl class="details">
  1711. </dl>
  1712. <h5>Returns:</h5>
  1713. <dl>
  1714. <dt>
  1715. Type
  1716. </dt>
  1717. <dd>
  1718. <span class="param-type">Number</span>
  1719. </dd>
  1720. </dl>
  1721. </dd>
  1722. <dt>
  1723. <h4 class="name" id="getOrdinalNumber"><span class="type-signature"></span>getOrdinalNumber<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1724. </dt>
  1725. <dd>
  1726. <div class="description">
  1727. <p>Returns the ordinal number of this Date</p>
  1728. </div>
  1729. <dl class="details">
  1730. </dl>
  1731. <h5>Returns:</h5>
  1732. <dl>
  1733. <dt>
  1734. Type
  1735. </dt>
  1736. <dd>
  1737. <span class="param-type">Number</span>
  1738. </dd>
  1739. </dl>
  1740. </dd>
  1741. <dt>
  1742. <h4 class="name" id="getSecondsBetween"><span class="type-signature"></span>getSecondsBetween<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1743. </dt>
  1744. <dd>
  1745. <div class="description">
  1746. <p>Returns the number of seconds between this Date and the Date passed in</p>
  1747. </div>
  1748. <h5>Parameters:</h5>
  1749. <table class="params table table-striped">
  1750. <thead>
  1751. <tr>
  1752. <th>Name</th>
  1753. <th>Type</th>
  1754. <th class="last">Description</th>
  1755. </tr>
  1756. </thead>
  1757. <tbody>
  1758. <tr>
  1759. <td class="name"><code>Date</code></td>
  1760. <td class="type">
  1761. <span class="param-type"><a href="Date.html">Date</a></span>
  1762. </td>
  1763. <td class="description last"><p>to compare to</p></td>
  1764. </tr>
  1765. </tbody>
  1766. </table>
  1767. <dl class="details">
  1768. </dl>
  1769. <h5>Returns:</h5>
  1770. <dl>
  1771. <dt>
  1772. Type
  1773. </dt>
  1774. <dd>
  1775. <span class="param-type">Number</span>
  1776. </dd>
  1777. </dl>
  1778. </dd>
  1779. <dt>
  1780. <h4 class="name" id="getUTCOffset"><span class="type-signature"></span>getUTCOffset<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
  1781. </dt>
  1782. <dd>
  1783. <div class="description">
  1784. <p>Returns the current UTC office</p>
  1785. </div>
  1786. <dl class="details">
  1787. </dl>
  1788. <h5>Returns:</h5>
  1789. <dl>
  1790. <dt>
  1791. Type
  1792. </dt>
  1793. <dd>
  1794. <span class="param-type">String</span>
  1795. </dd>
  1796. </dl>
  1797. </dd>
  1798. <dt>
  1799. <h4 class="name" id="getWeekNumber"><span class="type-signature"></span>getWeekNumber<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span></h4>
  1800. </dt>
  1801. <dd>
  1802. <div class="description">
  1803. <p>Returns the week number of this Date</p>
  1804. </div>
  1805. <dl class="details">
  1806. </dl>
  1807. <h5>Returns:</h5>
  1808. <dl>
  1809. <dt>
  1810. Type
  1811. </dt>
  1812. <dd>
  1813. <span class="param-type">Number</span>
  1814. </dd>
  1815. </dl>
  1816. </dd>
  1817. <dt>
  1818. <h4 class="name" id="isAfter"><span class="type-signature"></span>isAfter<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1819. </dt>
  1820. <dd>
  1821. <div class="description">
  1822. <p>Compares a Date to this Date for to see if it is after the Date passed</p>
  1823. </div>
  1824. <h5>Parameters:</h5>
  1825. <table class="params table table-striped">
  1826. <thead>
  1827. <tr>
  1828. <th>Name</th>
  1829. <th>Type</th>
  1830. <th class="last">Description</th>
  1831. </tr>
  1832. </thead>
  1833. <tbody>
  1834. <tr>
  1835. <td class="name"><code>Date</code></td>
  1836. <td class="type">
  1837. <span class="param-type"><a href="Date.html">Date</a></span>
  1838. </td>
  1839. <td class="description last"><p>to compare to</p></td>
  1840. </tr>
  1841. </tbody>
  1842. </table>
  1843. <dl class="details">
  1844. </dl>
  1845. <h5>Returns:</h5>
  1846. <dl>
  1847. <dt>
  1848. Type
  1849. </dt>
  1850. <dd>
  1851. <span class="param-type">Boolean</span>
  1852. </dd>
  1853. </dl>
  1854. </dd>
  1855. <dt>
  1856. <h4 class="name" id="isBefore"><span class="type-signature"></span>isBefore<span class="signature">(Date)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1857. </dt>
  1858. <dd>
  1859. <div class="description">
  1860. <p>Compares a Date to this Date for to see if it is before the Date passed</p>
  1861. </div>
  1862. <h5>Parameters:</h5>
  1863. <table class="params table table-striped">
  1864. <thead>
  1865. <tr>
  1866. <th>Name</th>
  1867. <th>Type</th>
  1868. <th class="last">Description</th>
  1869. </tr>
  1870. </thead>
  1871. <tbody>
  1872. <tr>
  1873. <td class="name"><code>Date</code></td>
  1874. <td class="type">
  1875. <span class="param-type"><a href="Date.html">Date</a></span>
  1876. </td>
  1877. <td class="description last"><p>to compare to</p></td>
  1878. </tr>
  1879. </tbody>
  1880. </table>
  1881. <dl class="details">
  1882. </dl>
  1883. <h5>Returns:</h5>
  1884. <dl>
  1885. <dt>
  1886. Type
  1887. </dt>
  1888. <dd>
  1889. <span class="param-type">Boolean</span>
  1890. </dd>
  1891. </dl>
  1892. </dd>
  1893. <dt>
  1894. <h4 class="name" id="isToday"><span class="type-signature"></span>isToday<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1895. </dt>
  1896. <dd>
  1897. <div class="description">
  1898. <p>Checks to see if the Date is today</p>
  1899. </div>
  1900. <dl class="details">
  1901. </dl>
  1902. <h5>Returns:</h5>
  1903. <dl>
  1904. <dt>
  1905. Type
  1906. </dt>
  1907. <dd>
  1908. <span class="param-type">Boolean</span>
  1909. </dd>
  1910. </dl>
  1911. </dd>
  1912. <dt>
  1913. <h4 class="name" id="isWeekend"><span class="type-signature"></span>isWeekend<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
  1914. </dt>
  1915. <dd>
  1916. <div class="description">
  1917. <p>Returns <code>true</code> if the Date is a weekend using standard Saturday/Sunday definition of a weekend</p>
  1918. </div>
  1919. <dl class="details">
  1920. </dl>
  1921. <h5>Returns:</h5>
  1922. <dl>
  1923. <dt>
  1924. Type
  1925. </dt>
  1926. <dd>
  1927. <span class="param-type">Boolean</span>
  1928. </dd>
  1929. </dl>
  1930. </dd>
  1931. <dt>
  1932. <h4 class="name" id="remove"><span class="type-signature"></span>remove<span class="signature">(removals)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1933. </dt>
  1934. <dd>
  1935. <div class="description">
  1936. <p>Removes <code>milliseconds</code>, <code>seconds</code>, <code>minutes</code>, <code>hours</code>, <code>days</code>, <code>weeks</code>, <code>months</code>, and <code>years</code> and returns a new Date.
  1937. Usage: <code>data.remove({ &quot;seconds&quot;: 10, &quot;days&quot;: 1 })</code></p>
  1938. </div>
  1939. <h5>Parameters:</h5>
  1940. <table class="params table table-striped">
  1941. <thead>
  1942. <tr>
  1943. <th>Name</th>
  1944. <th>Type</th>
  1945. <th class="last">Description</th>
  1946. </tr>
  1947. </thead>
  1948. <tbody>
  1949. <tr>
  1950. <td class="name"><code>removals</code></td>
  1951. <td class="type">
  1952. <span class="param-type">Object</span>
  1953. </td>
  1954. <td class="description last"></td>
  1955. </tr>
  1956. </tbody>
  1957. </table>
  1958. <dl class="details">
  1959. </dl>
  1960. <h5>Returns:</h5>
  1961. <dl>
  1962. <dt>
  1963. Type
  1964. </dt>
  1965. <dd>
  1966. <span class="param-type"><a href="Date.html">Date</a></span>
  1967. </dd>
  1968. </dl>
  1969. </dd>
  1970. <dt>
  1971. <h4 class="name" id="removeDays"><span class="type-signature"></span>removeDays<span class="signature">(days)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  1972. </dt>
  1973. <dd>
  1974. <div class="description">
  1975. <p>Removes days from the Date and returns it</p>
  1976. </div>
  1977. <h5>Parameters:</h5>
  1978. <table class="params table table-striped">
  1979. <thead>
  1980. <tr>
  1981. <th>Name</th>
  1982. <th>Type</th>
  1983. <th class="last">Description</th>
  1984. </tr>
  1985. </thead>
  1986. <tbody>
  1987. <tr>
  1988. <td class="name"><code>days</code></td>
  1989. <td class="type">
  1990. <span class="param-type">Number</span>
  1991. </td>
  1992. <td class="description last"><p>Number of days to remove</p></td>
  1993. </tr>
  1994. </tbody>
  1995. </table>
  1996. <dl class="details">
  1997. <dt class="important tag-deprecated">Deprecated:</dt>
  1998. <dd>
  1999. <ul class="dummy">
  2000. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2001. </ul>
  2002. </dd>
  2003. </dl>
  2004. <h5>Returns:</h5>
  2005. <dl>
  2006. <dt>
  2007. Type
  2008. </dt>
  2009. <dd>
  2010. <span class="param-type"><a href="Date.html">Date</a></span>
  2011. </dd>
  2012. </dl>
  2013. </dd>
  2014. <dt>
  2015. <h4 class="name" id="removeHours"><span class="type-signature"></span>removeHours<span class="signature">(hours)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2016. </dt>
  2017. <dd>
  2018. <div class="description">
  2019. <p>Removes hours from the Date and returns it</p>
  2020. </div>
  2021. <h5>Parameters:</h5>
  2022. <table class="params table table-striped">
  2023. <thead>
  2024. <tr>
  2025. <th>Name</th>
  2026. <th>Type</th>
  2027. <th class="last">Description</th>
  2028. </tr>
  2029. </thead>
  2030. <tbody>
  2031. <tr>
  2032. <td class="name"><code>hours</code></td>
  2033. <td class="type">
  2034. <span class="param-type">Number</span>
  2035. </td>
  2036. <td class="description last"><p>Number of hours to remove</p></td>
  2037. </tr>
  2038. </tbody>
  2039. </table>
  2040. <dl class="details">
  2041. <dt class="important tag-deprecated">Deprecated:</dt>
  2042. <dd>
  2043. <ul class="dummy">
  2044. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2045. </ul>
  2046. </dd>
  2047. </dl>
  2048. <h5>Returns:</h5>
  2049. <dl>
  2050. <dt>
  2051. Type
  2052. </dt>
  2053. <dd>
  2054. <span class="param-type"><a href="Date.html">Date</a></span>
  2055. </dd>
  2056. </dl>
  2057. </dd>
  2058. <dt>
  2059. <h4 class="name" id="removeMilliseconds"><span class="type-signature"></span>removeMilliseconds<span class="signature">(milliseconds)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2060. </dt>
  2061. <dd>
  2062. <div class="description">
  2063. <p>Removes milliseconds from the Date and returns it</p>
  2064. </div>
  2065. <h5>Parameters:</h5>
  2066. <table class="params table table-striped">
  2067. <thead>
  2068. <tr>
  2069. <th>Name</th>
  2070. <th>Type</th>
  2071. <th class="last">Description</th>
  2072. </tr>
  2073. </thead>
  2074. <tbody>
  2075. <tr>
  2076. <td class="name"><code>milliseconds</code></td>
  2077. <td class="type">
  2078. <span class="param-type">Number</span>
  2079. </td>
  2080. <td class="description last"><p>Number of millseconds to remove</p></td>
  2081. </tr>
  2082. </tbody>
  2083. </table>
  2084. <dl class="details">
  2085. <dt class="important tag-deprecated">Deprecated:</dt>
  2086. <dd>
  2087. <ul class="dummy">
  2088. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2089. </ul>
  2090. </dd>
  2091. </dl>
  2092. <h5>Returns:</h5>
  2093. <dl>
  2094. <dt>
  2095. Type
  2096. </dt>
  2097. <dd>
  2098. <span class="param-type"><a href="Date.html">Date</a></span>
  2099. </dd>
  2100. </dl>
  2101. </dd>
  2102. <dt>
  2103. <h4 class="name" id="removeMinutes"><span class="type-signature"></span>removeMinutes<span class="signature">(seconds)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2104. </dt>
  2105. <dd>
  2106. <div class="description">
  2107. <p>Removes minutes from the Date and returns it</p>
  2108. </div>
  2109. <h5>Parameters:</h5>
  2110. <table class="params table table-striped">
  2111. <thead>
  2112. <tr>
  2113. <th>Name</th>
  2114. <th>Type</th>
  2115. <th class="last">Description</th>
  2116. </tr>
  2117. </thead>
  2118. <tbody>
  2119. <tr>
  2120. <td class="name"><code>seconds</code></td>
  2121. <td class="type">
  2122. <span class="param-type">Number</span>
  2123. </td>
  2124. <td class="description last"><p>Number of minutes to remove</p></td>
  2125. </tr>
  2126. </tbody>
  2127. </table>
  2128. <dl class="details">
  2129. <dt class="important tag-deprecated">Deprecated:</dt>
  2130. <dd>
  2131. <ul class="dummy">
  2132. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2133. </ul>
  2134. </dd>
  2135. </dl>
  2136. <h5>Returns:</h5>
  2137. <dl>
  2138. <dt>
  2139. Type
  2140. </dt>
  2141. <dd>
  2142. <span class="param-type"><a href="Date.html">Date</a></span>
  2143. </dd>
  2144. </dl>
  2145. </dd>
  2146. <dt>
  2147. <h4 class="name" id="removeMonths"><span class="type-signature"></span>removeMonths<span class="signature">(months)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2148. </dt>
  2149. <dd>
  2150. <div class="description">
  2151. <p>Removes months from the Date and returns it</p>
  2152. </div>
  2153. <h5>Parameters:</h5>
  2154. <table class="params table table-striped">
  2155. <thead>
  2156. <tr>
  2157. <th>Name</th>
  2158. <th>Type</th>
  2159. <th class="last">Description</th>
  2160. </tr>
  2161. </thead>
  2162. <tbody>
  2163. <tr>
  2164. <td class="name"><code>months</code></td>
  2165. <td class="type">
  2166. <span class="param-type">Number</span>
  2167. </td>
  2168. <td class="description last"><p>Number of months to remove</p></td>
  2169. </tr>
  2170. </tbody>
  2171. </table>
  2172. <dl class="details">
  2173. <dt class="important tag-deprecated">Deprecated:</dt>
  2174. <dd>
  2175. <ul class="dummy">
  2176. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2177. </ul>
  2178. </dd>
  2179. </dl>
  2180. <h5>Returns:</h5>
  2181. <dl>
  2182. <dt>
  2183. Type
  2184. </dt>
  2185. <dd>
  2186. <span class="param-type"><a href="Date.html">Date</a></span>
  2187. </dd>
  2188. </dl>
  2189. </dd>
  2190. <dt>
  2191. <h4 class="name" id="removeSeconds"><span class="type-signature"></span>removeSeconds<span class="signature">(seconds)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2192. </dt>
  2193. <dd>
  2194. <div class="description">
  2195. <p>Removes seconds from the Date and returns it</p>
  2196. </div>
  2197. <h5>Parameters:</h5>
  2198. <table class="params table table-striped">
  2199. <thead>
  2200. <tr>
  2201. <th>Name</th>
  2202. <th>Type</th>
  2203. <th class="last">Description</th>
  2204. </tr>
  2205. </thead>
  2206. <tbody>
  2207. <tr>
  2208. <td class="name"><code>seconds</code></td>
  2209. <td class="type">
  2210. <span class="param-type">Number</span>
  2211. </td>
  2212. <td class="description last"><p>Number of seconds to remove</p></td>
  2213. </tr>
  2214. </tbody>
  2215. </table>
  2216. <dl class="details">
  2217. <dt class="important tag-deprecated">Deprecated:</dt>
  2218. <dd>
  2219. <ul class="dummy">
  2220. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2221. </ul>
  2222. </dd>
  2223. </dl>
  2224. <h5>Returns:</h5>
  2225. <dl>
  2226. <dt>
  2227. Type
  2228. </dt>
  2229. <dd>
  2230. <span class="param-type"><a href="Date.html">Date</a></span>
  2231. </dd>
  2232. </dl>
  2233. </dd>
  2234. <dt>
  2235. <h4 class="name" id="removeWeeks"><span class="type-signature"></span>removeWeeks<span class="signature">(weeks)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2236. </dt>
  2237. <dd>
  2238. <div class="description">
  2239. <p>Removes weeks from the Date and returns it</p>
  2240. </div>
  2241. <h5>Parameters:</h5>
  2242. <table class="params table table-striped">
  2243. <thead>
  2244. <tr>
  2245. <th>Name</th>
  2246. <th>Type</th>
  2247. <th class="last">Description</th>
  2248. </tr>
  2249. </thead>
  2250. <tbody>
  2251. <tr>
  2252. <td class="name"><code>weeks</code></td>
  2253. <td class="type">
  2254. <span class="param-type">Number</span>
  2255. </td>
  2256. <td class="description last"><p>Number of weeks to remove</p></td>
  2257. </tr>
  2258. </tbody>
  2259. </table>
  2260. <dl class="details">
  2261. <dt class="important tag-deprecated">Deprecated:</dt>
  2262. <dd>
  2263. <ul class="dummy">
  2264. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2265. </ul>
  2266. </dd>
  2267. </dl>
  2268. <h5>Returns:</h5>
  2269. <dl>
  2270. <dt>
  2271. Type
  2272. </dt>
  2273. <dd>
  2274. <span class="param-type"><a href="Date.html">Date</a></span>
  2275. </dd>
  2276. </dl>
  2277. </dd>
  2278. <dt>
  2279. <h4 class="name" id="removeYears"><span class="type-signature"></span>removeYears<span class="signature">(years)</span><span class="type-signature"> &rarr; {<a href="Date.html">Date</a>}</span></h4>
  2280. </dt>
  2281. <dd>
  2282. <div class="description">
  2283. <p>Removes years from the Date and returns it</p>
  2284. </div>
  2285. <h5>Parameters:</h5>
  2286. <table class="params table table-striped">
  2287. <thead>
  2288. <tr>
  2289. <th>Name</th>
  2290. <th>Type</th>
  2291. <th class="last">Description</th>
  2292. </tr>
  2293. </thead>
  2294. <tbody>
  2295. <tr>
  2296. <td class="name"><code>years</code></td>
  2297. <td class="type">
  2298. <span class="param-type">Number</span>
  2299. </td>
  2300. <td class="description last"><p>Number of years to remove</p></td>
  2301. </tr>
  2302. </tbody>
  2303. </table>
  2304. <dl class="details">
  2305. <dt class="important tag-deprecated">Deprecated:</dt>
  2306. <dd>
  2307. <ul class="dummy">
  2308. <li>Will be deprecated in version 2.0 in favor of remove</li>
  2309. </ul>
  2310. </dd>
  2311. </dl>
  2312. <h5>Returns:</h5>
  2313. <dl>
  2314. <dt>
  2315. Type
  2316. </dt>
  2317. <dd>
  2318. <span class="param-type"><a href="Date.html">Date</a></span>
  2319. </dd>
  2320. </dl>
  2321. </dd>
  2322. <dt>
  2323. <h4 class="name" id="setTimeToNow"><span class="type-signature"></span>setTimeToNow<span class="signature">()</span><span class="type-signature"></span></h4>
  2324. </dt>
  2325. <dd>
  2326. <div class="description">
  2327. <p>Sets the time and date to now</p>
  2328. </div>
  2329. <dl class="details">
  2330. </dl>
  2331. </dd>
  2332. <dt>
  2333. <h4 class="name" id="toCLFString"><span class="type-signature"></span>toCLFString<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
  2334. </dt>
  2335. <dd>
  2336. <div class="description">
  2337. <p>Returns a padded Common Log Format</p>
  2338. </div>
  2339. <dl class="details">
  2340. <dt class="important tag-deprecated">Deprecated:</dt>
  2341. <dd>
  2342. <ul class="dummy">
  2343. <li>Will be deprecated in version 2.0 in favor of toFormat</li>
  2344. </ul>
  2345. </dd>
  2346. </dl>
  2347. <h5>Returns:</h5>
  2348. <dl>
  2349. <dt>
  2350. Type
  2351. </dt>
  2352. <dd>
  2353. <span class="param-type">String</span>
  2354. </dd>
  2355. </dl>
  2356. </dd>
  2357. <dt>
  2358. <h4 class="name" id="toDBString"><span class="type-signature"></span>toDBString<span class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
  2359. </dt>
  2360. <dd>
  2361. <div class="description">
  2362. <p>Returns a formatted String for database insertion</p>
  2363. </div>
  2364. <dl class="details">
  2365. <dt class="important tag-deprecated">Deprecated:</dt>
  2366. <dd>
  2367. <ul class="dummy">
  2368. <li>Will be deprecated in version 2.0 in favor of toFormat</li>
  2369. </ul>
  2370. </dd>
  2371. </dl>
  2372. <h5>Returns:</h5>
  2373. <dl>
  2374. <dt>
  2375. Type
  2376. </dt>
  2377. <dd>
  2378. <span class="param-type">String</span>
  2379. </dd>
  2380. </dl>
  2381. </dd>
  2382. <dt>
  2383. <h4 class="name" id="toFormat"><span class="type-signature"></span>toFormat<span class="signature">(format)</span><span class="type-signature"> &rarr; {String}</span></h4>
  2384. </dt>
  2385. <dd>
  2386. <div class="description">
  2387. <p>Returns the a formatted version of this Date</p>
  2388. </div>
  2389. <h5>Parameters:</h5>
  2390. <table class="params table table-striped">
  2391. <thead>
  2392. <tr>
  2393. <th>Name</th>
  2394. <th>Type</th>
  2395. <th class="last">Description</th>
  2396. </tr>
  2397. </thead>
  2398. <tbody>
  2399. <tr>
  2400. <td class="name"><code>format</code></td>
  2401. <td class="type">
  2402. <span class="param-type">String</span>
  2403. </td>
  2404. <td class="description last"><p>Format of the Date, using <code>YYYY</code>, <code>YY</code>, <code>MM</code>, <code>DD</code>, <code>HH</code>, <code>HH24</code>, <code>MI</code>, <code>SS</code>, etc</p></td>
  2405. </tr>
  2406. </tbody>
  2407. </table>
  2408. <dl class="details">
  2409. </dl>
  2410. <h5>Returns:</h5>
  2411. <dl>
  2412. <dt>
  2413. Type
  2414. </dt>
  2415. <dd>
  2416. <span class="param-type">String</span>
  2417. </dd>
  2418. </dl>
  2419. </dd>
  2420. <dt>
  2421. <h4 class="name" id="toUTCFormat"><span class="type-signature"></span>toUTCFormat<span class="signature">(format)</span><span class="type-signature"> &rarr; {String}</span></h4>
  2422. </dt>
  2423. <dd>
  2424. <div class="description">
  2425. <p>Returns the a formatted version of the UTC version of this Date</p>
  2426. </div>
  2427. <h5>Parameters:</h5>
  2428. <table class="params table table-striped">
  2429. <thead>
  2430. <tr>
  2431. <th>Name</th>
  2432. <th>Type</th>
  2433. <th class="last">Description</th>
  2434. </tr>
  2435. </thead>
  2436. <tbody>
  2437. <tr>
  2438. <td class="name"><code>format</code></td>
  2439. <td class="type">
  2440. <span class="param-type">String</span>
  2441. </td>
  2442. <td class="description last"><p>Format of the Date, using <code>YYYY</code>, <code>YY</code>, <code>MM</code>, <code>DD</code>, <code>HH</code>, <code>HH24</code>, <code>MI</code>, <code>SS</code>, etc</p></td>
  2443. </tr>
  2444. </tbody>
  2445. </table>
  2446. <dl class="details">
  2447. </dl>
  2448. <h5>Returns:</h5>
  2449. <dl>
  2450. <dt>
  2451. Type
  2452. </dt>
  2453. <dd>
  2454. <span class="param-type">String</span>
  2455. </dd>
  2456. </dl>
  2457. </dd>
  2458. <dt>
  2459. <h4 class="name" id="toYMD"><span class="type-signature"></span>toYMD<span class="signature">(separator)</span><span class="type-signature"> &rarr; {String}</span></h4>
  2460. </dt>
  2461. <dd>
  2462. <div class="description">
  2463. <p>Returns a padded Year/Month/Day</p>
  2464. </div>
  2465. <h5>Parameters:</h5>
  2466. <table class="params table table-striped">
  2467. <thead>
  2468. <tr>
  2469. <th>Name</th>
  2470. <th>Type</th>
  2471. <th class="last">Description</th>
  2472. </tr>
  2473. </thead>
  2474. <tbody>
  2475. <tr>
  2476. <td class="name"><code>separator</code></td>
  2477. <td class="type">
  2478. <span class="param-type">String</span>
  2479. </td>
  2480. <td class="description last"><p>optional, defaults to &quot;-&quot;</p></td>
  2481. </tr>
  2482. </tbody>
  2483. </table>
  2484. <dl class="details">
  2485. <dt class="important tag-deprecated">Deprecated:</dt>
  2486. <dd>
  2487. <ul class="dummy">
  2488. <li>Will be deprecated in version 2.0 in favor of toFormat</li>
  2489. </ul>
  2490. </dd>
  2491. </dl>
  2492. <h5>Returns:</h5>
  2493. <dl>
  2494. <dt>
  2495. Type
  2496. </dt>
  2497. <dd>
  2498. <span class="param-type">String</span>
  2499. </dd>
  2500. </dl>
  2501. </dd>
  2502. </dl>
  2503. </article>
  2504. </section>
  2505. </div>
  2506. <div class="clearfix"></div>
  2507. <footer>
  2508. <span class="jsdoc-message">
  2509. Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
  2510. on 2016-04-18T20:32:20-07:00 using the <a
  2511. href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
  2512. </span>
  2513. </footer>
  2514. </div>
  2515. <div class="span3">
  2516. <div id="toc"></div>
  2517. </div>
  2518. <br clear="both">
  2519. </div>
  2520. </div>
  2521. <!--<script src="scripts/sunlight.js"></script>-->
  2522. <script src="scripts/docstrap.lib.js"></script>
  2523. <script src="scripts/bootstrap-dropdown.js"></script>
  2524. <script src="scripts/toc.js"></script>
  2525. <script>
  2526. $( function () {
  2527. $( "[id*='$']" ).each( function () {
  2528. var $this = $( this );
  2529. $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
  2530. } );
  2531. $( "#toc" ).toc( {
  2532. anchorName : function ( i, heading, prefix ) {
  2533. return $( heading ).attr( "id" ) || ( prefix + i );
  2534. },
  2535. selectors : "h1,h2,h3,h4",
  2536. showAndHide : false,
  2537. scrollTo : "100px"
  2538. } );
  2539. $( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
  2540. $( "#main span[id^='toc']" ).addClass( "toc-shim" );
  2541. $( '.dropdown-toggle' ).dropdown();
  2542. // $( ".tutorial-section pre, .readme-section pre" ).addClass( "sunlight-highlight-javascript" ).addClass( "linenums" );
  2543. $( ".tutorial-section pre, .readme-section pre" ).each( function () {
  2544. var $this = $( this );
  2545. var example = $this.find( "code" );
  2546. exampleText = example.html();
  2547. var lang = /{@lang (.*?)}/.exec( exampleText );
  2548. if ( lang && lang[1] ) {
  2549. exampleText = exampleText.replace( lang[0], "" );
  2550. example.html( exampleText );
  2551. lang = lang[1];
  2552. } else {
  2553. lang = "javascript";
  2554. }
  2555. if ( lang ) {
  2556. $this
  2557. .addClass( "sunlight-highlight-" + lang )
  2558. .addClass( "linenums" )
  2559. .html( example.html() );
  2560. }
  2561. } );
  2562. Sunlight.highlightAll( {
  2563. lineNumbers : true,
  2564. showMenu : true,
  2565. enableDoclinks : true
  2566. } );
  2567. } );
  2568. </script>
  2569. <!--Navigation and Symbol Display-->
  2570. <!--Google Analytics-->
  2571. </body>
  2572. </html>