-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathhbct.html
5441 lines (5236 loc) · 499 KB
/
hbct.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="referrer" content="origin">
<meta name="viewport" content="initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests; block-all-mixed-content">
<meta name="generator" content="hbdoc">
<meta name="keywords" content="Harbour, Clipper, xBase, database, Free Software, GPL, compiler, cross-platform, 32-bit, 64-bit">
<title>Harbour Reference Guide · hbct lib</title>
<style>
/**
* Minified by jsDelivr using clean-css v4.2.1.
* Original file: /gh/PrismJS/[email protected]/themes/prism-okaidia.css
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
/*# sourceMappingURL=/sm/40fbac8c090a0ea2949bef662c4dc8f61e9fdf4136e4615ec312d47b6c8d4578.map */
</style>
<link rel="stylesheet" href="hbdoc.css">
<body>
<header>
<svg viewBox="0 0 2260 2260" xmlns="http://www.w3.org/2000/svg">
<path d="m900 1908c137.17-53.265 443.4-77.006 600-52.437-27.114-474.75-34.113-758.18-7.68-1116.3 2.056-27.195 4.283-54.9 6.68-83.245-34.633 68.628-579.45 1206.4-599 1252z"/>
<path d="m1503 297c-123.84 327.12-161.3 844.46-213.46 1389.5-169.5-13.113-449.01 19.795-659.3 108.82 13.528-23.75 771.23-1330.1 872.77-1498.3z"/>
<path d="m1172 1270c-224.3-65.046-473.09 64.996-694 204 153.35-235.43 613.25-936.89 1011-1474-301.51 419.86-317.18 1087.9-317 1270z"/>
<path d="m620.8 2258.7c0.662-1.037 1.36-2.165 2.068-3.191 36.736-55.29 105.69-101.18 205.1-96.72 193.8 8.619 357.24 25.577 652.18 7.207-290.1-9.342-643.35-48.142-1069.1-124.55 105.83 77.98 193.83 195.4 209.76 217.25"/>
<path d="m2259.2 2007.9c-351.83 85.376-1111.3 54.312-2014.2-105.24 59.534 32.024 105.24 68.44 160.57 113.87 884.55 158.71 1465.7 153.54 1808.7 60.37 31.307-22.43 35.385-37.956 44.934-69.006"/>
<path d="m2250.8 1985.6c-316.53 76.867-976 46.6-1793.5-72.332-79.588-11.605-308.23-46.57-445.63-69.063-7.464-15.506-11.282-40.462-11.282-70.79 509.45 68.675 1799.6 275.42 2244 168.26 2.015 12.02 7.115 18.487 6.527 43.929"/>
</svg>
<div>
<div><a href="index.html">Harbour Reference Guide</a></div>
<div>
<nav class="menu">
<nav class="dropdown">
<span class="dropbtn" onclick="">hbct lib</span>
<nav class="dropdown-content">
<a href="harbour.html">Harbour core</a>
<hr>
<a href="clc53.html">Clipper 5.3</a>
<a href="clct3.html">Clipper Tools 3</a>
<hr>
<a href="gtwvw.html">gtwvw</a>
<a href="hbct.html">hbct</a>
<a href="hbcups.html">hbcups</a>
<a href="hbgd.html">hbgd</a>
<a href="hbgt.html">hbgt</a>
<a href="hbmisc.html">hbmisc</a>
<a href="hbnf.html">hbnf</a>
<a href="hbxpp.html">hbxpp</a>
<a href="hbziparc.html">hbziparc</a>
<a href="rddads.html">rddads</a>
</nav>
</nav>
<nav class="dropdown lang">
<span class="dropbtn lang">EN</span><nav class="dropdown-content lang">
<a href="hbct.html">EN</a>
<a href="pt-br/index.html">pt-BR</a>
</nav>
</nav>
</nav>
</div>
</div>
</header>
<aside>
<a href="#acos" title="Acos()"><code>Acos()</code></a>
<a href="#addascii" title="AddAscii()"><code>AddAscii()</code></a>
<a href="#addmonth" title="AddMonth()"><code>AddMonth()</code></a>
<a href="#afteratnum" title="AfterAtNum()"><code>AfterAtNum()</code></a>
<a href="#asciisum" title="AsciiSum()"><code>AsciiSum()</code></a>
<a href="#ascpos" title="AscPos()"><code>AscPos()</code></a>
<a href="#asin" title="Asin()"><code>Asin()</code></a>
<a href="#atan" title="Atan()"><code>Atan()</code></a>
<a href="#atadjust" title="AtAdjust()"><code>AtAdjust()</code></a>
<a href="#atn2" title="Atn2()"><code>Atn2()</code></a>
<a href="#atnum" title="AtNum()"><code>AtNum()</code></a>
<a href="#atrepl" title="AtRepl()"><code>AtRepl()</code></a>
<a href="#attoken" title="AtToken()"><code>AtToken()</code></a>
<a href="#beforatnum" title="BeforAtNum()"><code>BeforAtNum()</code></a>
<a href="#bittoc" title="BitToC()"><code>BitToC()</code></a>
<a href="#bom" title="BoM()"><code>BoM()</code></a>
<a href="#boq" title="BoQ()"><code>BoQ()</code></a>
<a href="#boy" title="BoY()"><code>BoY()</code></a>
<a href="#ceiling" title="Ceiling()"><code>Ceiling()</code></a>
<a href="#celsius" title="Celsius()"><code>Celsius()</code></a>
<a href="#charadd" title="CharAdd()"><code>CharAdd()</code></a>
<a href="#charand" title="CharAnd()"><code>CharAnd()</code></a>
<a href="#chareven" title="CharEven()"><code>CharEven()</code></a>
<a href="#charhist" title="CharHist()"><code>CharHist()</code></a>
<a href="#charlist" title="CharList()"><code>CharList()</code></a>
<a href="#charmirr" title="CharMirr()"><code>CharMirr()</code></a>
<a href="#charmix" title="CharMix()"><code>CharMix()</code></a>
<a href="#charnolist" title="CharNoList()"><code>CharNoList()</code></a>
<a href="#charnot" title="CharNot()"><code>CharNot()</code></a>
<a href="#charodd" title="CharOdd()"><code>CharOdd()</code></a>
<a href="#charone" title="CharOne()"><code>CharOne()</code></a>
<a href="#charonly" title="CharOnly()"><code>CharOnly()</code></a>
<a href="#charor" title="CharOr()"><code>CharOr()</code></a>
<a href="#charpix" title="CharPix()"><code>CharPix()</code></a>
<a href="#charrela" title="CharRelA()"><code>CharRelA()</code></a>
<a href="#charrelrep" title="CharRelRep()"><code>CharRelRep()</code></a>
<a href="#charrem" title="CharRem()"><code>CharRem()</code></a>
<a href="#charrepl" title="CharRepl()"><code>CharRepl()</code></a>
<a href="#charrll" title="CharRll()"><code>CharRll()</code></a>
<a href="#charrlr" title="CharRlr()"><code>CharRlr()</code></a>
<a href="#charshl" title="CharShl()"><code>CharShl()</code></a>
<a href="#charshr" title="CharShr()"><code>CharShr()</code></a>
<a href="#charslist" title="CharSList()"><code>CharSList()</code></a>
<a href="#charsort" title="CharSort()"><code>CharSort()</code></a>
<a href="#charsub" title="CharSub()"><code>CharSub()</code></a>
<a href="#charswap" title="CharSwap()"><code>CharSwap()</code></a>
<a href="#charwin" title="CharWin()"><code>CharWin()</code></a>
<a href="#charxor" title="CharXor()"><code>CharXor()</code></a>
<a href="#colorrepl" title="ColorRepl()"><code>ColorRepl()</code></a>
<a href="#colorton" title="ColorToN()"><code>ColorToN()</code></a>
<a href="#colorwin" title="ColorWin()"><code>ColorWin()</code></a>
<a href="#cos" title="Cos()"><code>Cos()</code></a>
<a href="#cosh" title="Cosh()"><code>Cosh()</code></a>
<a href="#cot" title="Cot()"><code>Cot()</code></a>
<a href="#countleft" title="CountLeft()"><code>CountLeft()</code></a>
<a href="#countright" title="CountRight()"><code>CountRight()</code></a>
<a href="#csetargerr" title="CSetArgErr()"><code>CSetArgErr()</code></a>
<a href="#csetatmupa" title="CSetAtMupa()"><code>CSetAtMupa()</code></a>
<a href="#csetref" title="CSetRef()"><code>CSetRef()</code></a>
<a href="#ctobit" title="CToBit()"><code>CToBit()</code></a>
<a href="#ctodow" title="CToDoW()"><code>CToDoW()</code></a>
<a href="#ctof" title="CToF()"><code>CToF()</code></a>
<a href="#ctomonth" title="CToMonth()"><code>CToMonth()</code></a>
<a href="#cton" title="CToN()"><code>CToN()</code></a>
<a href="#dmy" title="DMY()"><code>DMY()</code></a>
<a href="#doy" title="DoY()"><code>DoY()</code></a>
<a href="#dtor" title="DToR()"><code>DToR()</code></a>
<a href="#enhanced" title="Enhanced()"><code>Enhanced()</code></a>
<a href="#eom" title="EoM()"><code>EoM()</code></a>
<a href="#eoq" title="EoQ()"><code>EoQ()</code></a>
<a href="#eoy" title="EoY()"><code>EoY()</code></a>
<a href="#exponent" title="Exponent()"><code>Exponent()</code></a>
<a href="#fact" title="Fact()"><code>Fact()</code></a>
<a href="#fahrenheit" title="Fahrenheit()"><code>Fahrenheit()</code></a>
<a href="#floor" title="Floor()"><code>Floor()</code></a>
<a href="#ftoc" title="FToC()"><code>FToC()</code></a>
<a href="#fv" title="FV()"><code>FV()</code></a>
<a href="#getprec" title="GetPrec()"><code>GetPrec()</code></a>
<a href="#infinity" title="Infinity()"><code>Infinity()</code></a>
<a href="#invertattr" title="InvertAttr()"><code>InvertAttr()</code></a>
<a href="#invertwin" title="InvertWin()"><code>InvertWin()</code></a>
<a href="#isleap" title="IsLeap()"><code>IsLeap()</code></a>
<a href="#justleft" title="JustLeft()"><code>JustLeft()</code></a>
<a href="#justright" title="JustRight()"><code>JustRight()</code></a>
<a href="#ksetcaps" title="KSetCaps()"><code>KSetCaps()</code></a>
<a href="#ksetins" title="KSetIns()"><code>KSetIns()</code></a>
<a href="#ksetnum" title="KSetNum()"><code>KSetNum()</code></a>
<a href="#ksetscroll" title="KSetScroll()"><code>KSetScroll()</code></a>
<a href="#lastdayom" title="LastDayOM()"><code>LastDayOM()</code></a>
<a href="#log10" title="Log10()"><code>Log10()</code></a>
<a href="#mantissa" title="Mantissa()"><code>Mantissa()</code></a>
<a href="#mdy" title="MDY()"><code>MDY()</code></a>
<a href="#ntoc" title="NToC()"><code>NToC()</code></a>
<a href="#ntocdow" title="NToCDoW()"><code>NToCDoW()</code></a>
<a href="#ntocmonth" title="NToCMonth()"><code>NToCMonth()</code></a>
<a href="#ntocolor" title="NToColor()"><code>NToColor()</code></a>
<a href="#numat" title="NumAt()"><code>NumAt()</code></a>
<a href="#numtoken" title="NumToken()"><code>NumToken()</code></a>
<a href="#padleft" title="PadLeft()"><code>PadLeft()</code></a>
<a href="#padright" title="PadRight()"><code>PadRight()</code></a>
<a href="#payment" title="Payment()"><code>Payment()</code></a>
<a href="#periods" title="Periods()"><code>Periods()</code></a>
<a href="#pi" title="Pi()"><code>Pi()</code></a>
<a href="#posalpha" title="PosAlpha()"><code>PosAlpha()</code></a>
<a href="#poschar" title="PosChar()"><code>PosChar()</code></a>
<a href="#posdel" title="PosDel()"><code>PosDel()</code></a>
<a href="#posdiff" title="PosDiff()"><code>PosDiff()</code></a>
<a href="#posequal" title="PosEqual()"><code>PosEqual()</code></a>
<a href="#posins" title="PosIns()"><code>PosIns()</code></a>
<a href="#poslower" title="PosLower()"><code>PosLower()</code></a>
<a href="#posrange" title="PosRange()"><code>PosRange()</code></a>
<a href="#posrepl" title="PosRepl()"><code>PosRepl()</code></a>
<a href="#posupper" title="PosUpper()"><code>PosUpper()</code></a>
<a href="#printready" title="PrintReady()"><code>PrintReady()</code></a>
<a href="#printstat" title="PrintStat()"><code>PrintStat()</code></a>
<a href="#pv" title="PV()"><code>PV()</code></a>
<a href="#quarter" title="Quarter()"><code>Quarter()</code></a>
<a href="#rangerem" title="RangeRem()"><code>RangeRem()</code></a>
<a href="#rate" title="Rate()"><code>Rate()</code></a>
<a href="#rangerepl" title="RANGEREPL"><code>RANGEREPL</code></a>
<a href="#remall" title="RemAll()"><code>RemAll()</code></a>
<a href="#remleft" title="RemLeft()"><code>RemLeft()</code></a>
<a href="#remright" title="RemRight()"><code>RemRight()</code></a>
<a href="#replall" title="ReplAll()"><code>ReplAll()</code></a>
<a href="#replleft" title="ReplLeft()"><code>ReplLeft()</code></a>
<a href="#replright" title="ReplRight()"><code>ReplRight()</code></a>
<a href="#resttoken" title="RestToken()"><code>RestToken()</code></a>
<a href="#rtod" title="RToD()"><code>RToD()</code></a>
<a href="#savetoken" title="SaveToken()"><code>SaveToken()</code></a>
<a href="#sayscreen" title="SayScreen()"><code>SayScreen()</code></a>
<a href="#screenattr" title="ScreenAttr()"><code>ScreenAttr()</code></a>
<a href="#screenmix" title="ScreenMix()"><code>ScreenMix()</code></a>
<a href="#screentext" title="ScreenText()"><code>ScreenText()</code></a>
<a href="#setatlike" title="SetAtLike()"><code>SetAtLike()</code></a>
<a href="#setdate" title="SetDate()"><code>SetDate()</code></a>
<a href="#setfont" title="SetFont()"><code>SetFont()</code></a>
<a href="#setprec" title="SetPrec()"><code>SetPrec()</code></a>
<a href="#settime" title="SetTime()"><code>SetTime()</code></a>
<a href="#sign" title="Sign()"><code>Sign()</code></a>
<a href="#sin" title="Sin()"><code>Sin()</code></a>
<a href="#sinh" title="Sinh()"><code>Sinh()</code></a>
<a href="#standard" title="Standard()"><code>Standard()</code></a>
<a href="#strdiff" title="StrDiff()"><code>StrDiff()</code></a>
<a href="#strswap" title="StrSwap()"><code>StrSwap()</code></a>
<a href="#tabexpand" title="TabExpand()"><code>TabExpand()</code></a>
<a href="#tabpack" title="TabPack()"><code>TabPack()</code></a>
<a href="#tan" title="Tan()"><code>Tan()</code></a>
<a href="#tanh" title="Tanh()"><code>Tanh()</code></a>
<a href="#timevalid" title="TimeValid()"><code>TimeValid()</code></a>
<a href="#token" title="Token()"><code>Token()</code></a>
<a href="#tokenat" title="TokenAt()"><code>TokenAt()</code></a>
<a href="#tokenend" title="TokenEnd()"><code>TokenEnd()</code></a>
<a href="#tokenexit" title="TokenExit()"><code>TokenExit()</code></a>
<a href="#tokeninit" title="TokenInit()"><code>TokenInit()</code></a>
<a href="#tokenlower" title="TokenLower()"><code>TokenLower()</code></a>
<a href="#tokennext" title="TokenNext()"><code>TokenNext()</code></a>
<a href="#tokennum" title="TokenNum()"><code>TokenNum()</code></a>
<a href="#tokensep" title="TokenSep()"><code>TokenSep()</code></a>
<a href="#tokenupper" title="TokenUpper()"><code>TokenUpper()</code></a>
<a href="#unselected" title="Unselected()"><code>Unselected()</code></a>
<a href="#untextwin" title="UnTextWin()"><code>UnTextWin()</code></a>
<a href="#valpos" title="ValPos()"><code>ValPos()</code></a>
<a href="#vgapalette" title="VGAPalette()"><code>VGAPalette()</code></a>
<a href="#videotype" title="VideoType()"><code>VideoType()</code></a>
<a href="#waitperiod" title="WaitPeriod()"><code>WaitPeriod()</code></a>
<a href="#week" title="Week()"><code>Week()</code></a>
<a href="#wordone" title="WordOne()"><code>WordOne()</code></a>
<a href="#wordonly" title="WordOnly()"><code>WordOnly()</code></a>
<a href="#wordrem" title="WordRem()"><code>WordRem()</code></a>
<a href="#wordrepl" title="WordRepl()"><code>WordRepl()</code></a>
<a href="#wordswap" title="WordSwap()"><code>WordSwap()</code></a>
<a href="#wordtochar" title="WordToChar()"><code>WordToChar()</code></a>
<a href="#xtoc" title="XToC()"><code>XToC()</code></a>
</aside>
<main>
<section>
<h4><a href="#addmonth" class="d-id" id="addmonth" title="∞"><code>AddMonth()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L250" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=AddMonth">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+AddMonth">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">add months to a date</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>AddMonth( [<dDate>,] <nMonths> ) → dShiftedDate</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
</section>
<section>
<h4><a href="#bom" class="d-id" id="bom" title="∞"><code>BoM()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/datetime.c#L52" class="d-so" title="contrib/hbct/datetime.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=BoM">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+BoM">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/datetime.txt">Improve this doc</a></span></h4>
<div class="d-ol">Begin of Month</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>BoM( [<dDate>] ) → dDateBeginOfMonth</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#boq">BoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boy">BoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boy">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eom">EoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoq">EoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoy">EoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#boq" class="d-id" id="boq" title="∞"><code>BoQ()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/datetime.c#L102" class="d-so" title="contrib/hbct/datetime.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=BoQ">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+BoQ">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/datetime.txt">Improve this doc</a></span></h4>
<div class="d-ol">Begin of Quarter</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>BoQ( [<dDate>] ) → dDateBeginOfQuarter</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#bom">BoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#bom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boy">BoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boy">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eom">EoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoq">EoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoy">EoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#boy" class="d-id" id="boy" title="∞"><code>BoY()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/datetime.c#L154" class="d-so" title="contrib/hbct/datetime.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=BoY">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+BoY">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/datetime.txt">Improve this doc</a></span></h4>
<div class="d-ol">Begin of Year</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>BoY( [<dDate>] ) → dDateBeginOfYear</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#bom">BoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#bom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boq">BoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eom">EoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoq">EoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoy">EoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#ctodow" class="d-id" id="ctodow" title="∞"><code>CToDoW()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L99" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=CToDoW">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+CToDoW">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">convert name of day of the week to its ordinal number</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>CToDoW( <cName> ) → nOrdinal</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#ntocdow">NToCDoW()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#ntocdow">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#ctomonth" class="d-id" id="ctomonth" title="∞"><code>CToMonth()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L120" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=CToMonth">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+CToMonth">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">convert name of month to its ordinal number</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>CToMonth( <cName> ) → nOrdinal</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#ntocmonth">NToCMonth()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#ntocmonth">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#dmy" class="d-id" id="dmy" title="∞"><code>DMY()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L140" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=DMY">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+DMY">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Returns the date as a string in <code>DD Month YY</code> format</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>DMY( [<dDate>][, <lMode>] ) → cDateString</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Returns the date as a string in <code>DD Month YY</code> format. If <code>lMode</code> is TRUE, a "." is inserted after the <code>DD</code>.</div>
<div><p>TODO: add further documentation</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#mdy">MDY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#mdy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#doy" class="d-id" id="doy" title="∞"><code>DoY()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L300" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=DoY">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+DoY">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Determines the day of the year for a specific date</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>DMY( [<dDate>] ) → nDayOfYear</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Determines the day of the year for a specific date if <code>dDate</code> is invalid, returns 0.</div>
<div><p>TODO: add further documentation</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
</section>
<section>
<h4><a href="#eom" class="d-id" id="eom" title="∞"><code>EoM()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/datetime.c#L74" class="d-so" title="contrib/hbct/datetime.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=EoM">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+EoM">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/datetime.txt">Improve this doc</a></span></h4>
<div class="d-ol">End of Month</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>EoM( [<dDate>] ) → dDateEndOfMonth</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#bom">BoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#bom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boq">BoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boy">BoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boy">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoq">EoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoy">EoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#eoq" class="d-id" id="eoq" title="∞"><code>EoQ()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/datetime.c#L126" class="d-so" title="contrib/hbct/datetime.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=EoQ">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+EoQ">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/datetime.txt">Improve this doc</a></span></h4>
<div class="d-ol">End of Quarter</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>EoQ( [<dDate>] ) → dDateEndOfQuarter</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#bom">BoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#bom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boq">BoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boy">BoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boy">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eom">EoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoy">EoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#eoy" class="d-id" id="eoy" title="∞"><code>EoY()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/datetime.c#L176" class="d-so" title="contrib/hbct/datetime.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=EoY">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+EoY">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/datetime.txt">Improve this doc</a></span></h4>
<div class="d-ol">End of Year</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>EoY( [<dDate>] ) → dDateEndOfYear</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#bom">BoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#bom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boq">BoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boq">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#boy">BoY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#boy">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eom">EoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eom">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#eoq">EoQ()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eoq">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#isleap" class="d-id" id="isleap" title="∞"><code>IsLeap()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L317" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=IsLeap">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+IsLeap">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">determines of year of date is a leap year</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>IsLeap( [<dDate>] ) → lIsLeap</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add further documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
</section>
<section>
<h4><a href="#lastdayom" class="d-id" id="lastdayom" title="∞"><code>LastDayOM()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L341" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=LastDayOM">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+LastDayOM">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Returns the the number of days in the month.</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>LastDayOM( [<dDate|nMonth>] ) → nDaysInMonth</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p><code>dDate|nMonth</code> can be a date or a month number. If empty uses the system date. If <code>nMonth</code> is a 2, <code>LastDayOM()</code> will not know if it is a leap year or not. If <code>dDate</code> is invalid, returns 0</div>
<div><p>TODO: add further documentation</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#eom">EoM()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#eom">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#mdy" class="d-id" id="mdy" title="∞"><code>MDY()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L202" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=MDY">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+MDY">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Returns the date as a string in <code>Month DD, YY</code> or <code>Month DD, YYYY</code></div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>MDY( [<dDate>] ) → cDateString</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Returns the date as a string in <code>Month DD, YY</code> or <code>Month DD, YYYY</code>. If <code>dDate</code> is <code>NULL</code>, the system date is used.</div>
<div><p>TODO: add further documentation</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#dmy">DMY()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#dmy">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#ntocdow" class="d-id" id="ntocdow" title="∞"><code>NToCDoW()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L361" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=NToCDoW">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+NToCDoW">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">(num of day) → day name</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>NToCDoW( <nDay> ) → cDay</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#ctodow">CToDoW()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#ctodow">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#ntocmonth" class="d-id" id="ntocmonth" title="∞"><code>NToCMonth()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L366" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=NToCMonth">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+NToCMonth">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">(num of month ) → Month Name</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>NToCMonth( <nMonth> ) → cMonth</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">TODO: add documentation</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#ctomonth">CToMonth()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#ctomonth">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#quarter" class="d-id" id="quarter" title="∞"><code>Quarter()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L329" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Quarter">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Quarter">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Returns a number equal to the quarter in which a date falls</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>Quarter( [<dDate>] ) → nQuarter</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Returns a number equal to the quarter in which <code>dDate</code> falls. If <code>dDate</code> is empty, the system date is employed.</div>
<div><p>TODO: add further documentation</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
</section>
<section>
<h4><a href="#setdate" class="d-id" id="setdate" title="∞"><code>SetDate()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime3.c#L172" class="d-so" title="contrib/hbct/dattime3.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=SetDate">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+SetDate">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime3.txt">Improve this doc</a></span></h4>
<div class="d-ol">Sets the system date</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>SetDate( <dDate>, [<lMode>] ) → lSet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>dDate</code> Designates which date to use to set the system date.</div>
<div><code>lMode</code> Designates whether the date should also be set in the CMOS-RAM of an AT. The default is do not write (<code>.F.</code>). Note that in Windows platform this adjust is automatic, therefore this parameter is without effect.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>SetDate()</code> returns <code>.T.</code> when the date is successfully set.</div>
<div class="d-d">Description</div>
<div class="d-it">When you use this function to set the system date from within your application, all files acquire this date with each write procedure.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL dNewDate
// Set the system date in each case; but the hardware clock only
// on an AT:
dNewDate := 0d19910730
IF IsAt()
SetDate( dNewDate, .T. )
ELSE
SetDate( dNewDate )
ENDIF
// Or, more compactly:
SetDate( dNewDate, IsAt() )
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">
<div>Available on Linux</div>
<div>Available on Windows</div>
</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#settime">SetTime()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#settime">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#settime" class="d-id" id="settime" title="∞"><code>SetTime()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime3.c#L133" class="d-so" title="contrib/hbct/dattime3.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=SetTime">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+SetTime">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime3.txt">Improve this doc</a></span></h4>
<div class="d-ol">Sets the system clock</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>SetTime( <cTime>, [<lMode>] ) → lSet</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">
<div><code>cTime</code> Designates a character string that contains the time that is to become the system time.</div>
<div><code>lMode</code> Designates whether the time should also be set in the CMOS-RAM of an AT. The default is do not write to CMOS-RAM. Note that in Windows platform this adjust is automatic, therefore this parameter is without effect.</div>
</div>
<div class="d-d">Returns</div>
<div class="d-it">The function returns <code>.T.</code> when the time is set successfully.</div>
<div class="d-d">Description</div>
<div class="d-it">When you use this function to convert the time into the system time from within your application, all files acquire this time with each write procedure.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL cNewTime
// Set the system time in each case; but the hardware clock only
// on an AT:
cNewTime := "10:20:00"
IF IsAt()
SetTime( cNewTime, .T. )
ELSE
SetTime( cNewTime )
ENDIF
// Or, more compactly:
SetTime( cNewTime, IsAt() )
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">
<div>Available on Linux</div>
<div>Available on Windows</div>
</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#setdate">SetDate()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#setdate">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#timevalid">TimeValid()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#timevalid">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#timevalid" class="d-id" id="timevalid" title="∞"><code>TimeValid()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime3.c#L128" class="d-so" title="contrib/hbct/dattime3.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=TimeValid">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+TimeValid">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime3.txt">Improve this doc</a></span></h4>
<div class="d-ol">Determines whether a specified time is valid</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>TimeValid( <cTime> ) → lValid</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>cTime</code> Designates a character string that contains the time to test.</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>TimeValid()</code> returns <code>.T.</code> when <code>cTime</code> is a valid time; or <code>.F.</code> when <code>cTime</code> is an invalid time.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>With input that requires time manipulation, writing your own UDF to check time inputs was unavoidable up to now. <code>TimeValid()</code> permits Complete checking of a time designation. You can use this function effectively with a <code>VALID</code> clause within a <code>READ</code> mask.</div>
<div><p>Note</div>
<div><p>Note the format for time designations. There must always be two digits for hours, minutes, seconds, and hundredths; otherwise, the time it is regarded as invalid. Valid examples are <code>"12"</code>, <code>"12:59"</code>, <code>"12:59:59"</code>, and <code>"12:59:59:99"</code>. By contrast, invalid examples are <code>"24"</code>, <code>"12:60"</code>, or <code>"12:1"</code>, and/or <code>"12:"</code>. If you work with time strings that are not completely filled and that you need to check with <code>TimeValid()</code>, then they must be <code><a href="harbour.html#rtrim" title="harbour">RTrim()</a></code>-med prior to the use of <code>TimeValid()</code> (see following Examples).</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">LOCAL cBegin, GetList := {}
// Using the VALID clause with RTrim(), all valid times are
// accepted, even if no seconds or minutes are specified:
cBegin := Space( 11 )
@ 5, 10 SAY "Please input time for beginning work:";
GET cBegin VALID TimeValid( RTrim( cBegin ) )
READ
// Using a VALID clause without TRIM, hours and minutes must be
// specified, so that TimeValid() can confirm a valid time:
cBegin := Space( 5 )
@ 5, 10 SAY "Please input time for beginning work:" ;
GET cBegin VALID TimeValid( cBegin )
READ
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#settime">SetTime()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#settime">Clipper Tools 3</a></nav></nav></div>
</section>
<section>
<h4><a href="#waitperiod" class="d-id" id="waitperiod" title="∞"><code>WaitPeriod()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime3.c#L81" class="d-so" title="contrib/hbct/dattime3.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=WaitPeriod">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+WaitPeriod">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime3.txt">Improve this doc</a></span></h4>
<div class="d-ol">Pauses a specified time in increments of 1/100 seconds</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>WaitPeriod( [<nDelay>] ) → lNotElapsed</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nDelay</code> Designates the waiting period at initialization in 1/100ths of seconds. Values from 1 to 8, 640, 000 (one day) are possible.</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>WaitPeriod()</code> returns <code>.T.</code>, if the time span designated at initialization has not elapsed.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>This function sets a time span for a <code>DO WHILE</code> loop to run. The function must initialize prior to the loop, since you must specify the <code>nDelay</code> parameter in 1/100th seconds. Subsequently, the function can be implemented without a parameter for additional loop conditions. It returns <code>.T.</code>, as long as the designated time span has not yet run out.</div>
<div><p>Note:</div>
<div><p>The function notes the status of the internal timer at initialization. From that point on, the initialization should always precede the respective <code>DO WHILE</code>; otherwise, the time delay is incorrect. The passing of midnight (the time resets to the 0 value) is taken into account.</div>
</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">// Run a loop for 5 seconds:
WaitPeriod( 500 ) // Initialization, 5 seconds
DO WHILE <cond1> .AND. <cond2> .AND. WaitPeriod()
// ...
ENDDO
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
</section>
<section>
<h4><a href="#week" class="d-id" id="week" title="∞"><code>Week()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/dattime2.c#L371" class="d-so" title="contrib/hbct/dattime2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Week">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Week">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/dattime2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Returns the calendar week a number</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>Week( [<dDate>][, <lSWN>] ) → nWeek</code></pre></div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>Returns the calendar week a number. If no date is specified, the system date is used. An empty date via <code>hb_SToD()</code> returns 0.</div>
<div><p>If <code>lSWN</code> is <code>.T.</code>, <code>Week()</code> will calculate the "simple week number", defined by</div>
<div><p>- week #1 starts on January, 1st - week #(n+1) starts seven days after start of week #n</div>
<div><p>If <code>lSWN</code> is <code>.F.</code> (default), the ISO 8601 week number, defined by</div>
<div><p>- weeks start on Mondays - week #1 is the one that includes January, 4</div>
<div><p>will be calculated</div>
<div><p>TODO: add further documentation</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 date and time functions</div>
</section>
<section>
<h4><a href="#csetargerr" class="d-id" id="csetargerr" title="∞"><code>CSetArgErr()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/ctc.c#L213" class="d-so" title="contrib/hbct/ctc.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=CSetArgErr">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+CSetArgErr">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/ctc.txt">Improve this doc</a></span></h4>
<div class="d-ol">Sets argument error behaviour</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>CSetArgErr( [<nNewMode>] ) → nOldMode</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it">[<code>nNewMode</code>] New argument error throwing mode</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nOldMode</code> The current or old argument error throwing mode.</div>
<div class="d-d">Description</div>
<div class="d-it">
<div><p>All CT3 functions are very compliant in their reaction to wrong parameters. By using the <code>CSetArgErr()</code> function, you can make the library throw an error with the severity <code>nNewMode</code>. It is then up to the error handler to substitute the return value. <code>nNewMode</code> can be one of the severity modes defined in <code><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/ct.ch">ct.ch</a></code>:</div>
<div class="d-t d-t0">
<div> CT_ARGERR_WHOCARES corresponds to ES_WHOCARES</div>
<div> CT_ARGERR_WARNING corresponds to ES_WARNING</div>
<div> CT_ARGERR_ERROR corresponds to ES_ERROR</div>
<div> CT_ARGERR_CATASTROPHIC corresponds to ES_CATASTROPHIC</div>
<div> CT_ARGERR_IGNORE</div>
</div>
<div><p>The last is the default behaviour and switches any argument error throwing off.</div>
</div>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 general functions</div>
</section>
<section>
<h4><a href="#acos" class="d-id" id="acos" title="∞"><code>Acos()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/trig.c#L249" class="d-so" title="contrib/hbct/trig.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Acos">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Acos">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/trig.txt">Improve this doc</a></span></h4>
<div class="d-ol">Arcus cosine of the argument</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>Acos( nCosine ) → nRadiant</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nCosine</code> the cosine of an angle</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nRadiant</code> the angle whose cosine is <code>nCosine</code></div>
<div class="d-d">Description</div>
<div class="d-it">The function <code>Acos()</code> is the inverse function of <code><a href="#cos">Cos()</a></code>. It takes a cosine value and returns the smallest(!) angle whose cosine equals to the argument. The return value is given in radiants (full angle equals <code>2 * <code><a href="#pi">Pi()</a></code></code> - see <code><a href="#dtor">DToR()</a></code> if you need to convert it into degrees). Note, that <code>nCosine</code> must be between -1 and 1 and that <code>nRadiant</code> is always between 0 and <code><a href="#pi">Pi()</a></code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? Acos( 0.0 ) // --> Pi() / 2
? Acos( 0.5 ) // --> 1.04719...
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 math functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#asin">Asin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#asin">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#atan">Atan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#atan">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#atn2">Atn2()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#atn2">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#cos">Cos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cos">Clipper Tools 3</a></nav></nav>, <code><a href="#cosh">Cosh()</a></code>, <nav class="dropdown"><code><a href="#cot">Cot()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cot">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#dtor">DToR()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#dtor">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#pi">Pi()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#pi">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#rtod">RToD()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#rtod">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#sin">Sin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#sin">Clipper Tools 3</a></nav></nav>, <code><a href="#sinh">Sinh()</a></code>, <nav class="dropdown"><code><a href="#tan">Tan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#tan">Clipper Tools 3</a></nav></nav>, <code><a href="#tanh">Tanh()</a></code></div>
</section>
<section>
<h4><a href="#asin" class="d-id" id="asin" title="∞"><code>Asin()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/trig.c#L213" class="d-so" title="contrib/hbct/trig.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Asin">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Asin">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/trig.txt">Improve this doc</a></span></h4>
<div class="d-ol">Arcus sine of the argument</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>Asin( nSine ) → nRadiant</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nSine</code> the sine of an angle</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nRadiant</code> the angle whose sine is <code>nSine</code></div>
<div class="d-d">Description</div>
<div class="d-it">The function <code>Asin()</code> is the inverse function of <code><a href="#sin">Sin()</a></code>. It takes a sine value and returns the smallest(!) angle whose sine equals to the argument. The return value is given in radiants (full angle equals <code>2 * <code><a href="#pi">Pi()</a></code></code> - see <code><a href="#dtor">DToR()</a></code> if you need to convert it into degrees). Note, that <code>nSine</code> must be between -1 and 1 and that <code>nRadiant</code> is always between <code>-<code><a href="#pi">Pi()</a></code> / 2</code> and <code><code><a href="#pi">Pi()</a></code> / 2</code>.</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? Asin( 0.0 ) // --> 0.0
? Asin( 0.5 ) // --> 0.5235...
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 math functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#acos">Acos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#acos">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#atan">Atan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#atan">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#atn2">Atn2()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#atn2">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#cos">Cos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cos">Clipper Tools 3</a></nav></nav>, <code><a href="#cosh">Cosh()</a></code>, <nav class="dropdown"><code><a href="#cot">Cot()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cot">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#dtor">DToR()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#dtor">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#pi">Pi()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#pi">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#rtod">RToD()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#rtod">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#sin">Sin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#sin">Clipper Tools 3</a></nav></nav>, <code><a href="#sinh">Sinh()</a></code>, <nav class="dropdown"><code><a href="#tan">Tan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#tan">Clipper Tools 3</a></nav></nav>, <code><a href="#tanh">Tanh()</a></code></div>
</section>
<section>
<h4><a href="#atan" class="d-id" id="atan" title="∞"><code>Atan()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/trig.c#L285" class="d-so" title="contrib/hbct/trig.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Atan">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Atan">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/trig.txt">Improve this doc</a></span></h4>
<div class="d-ol">Arcus tangent of the argument</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>Acos( nTangent ) → nRadiant</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nTangent</code> the tangent of an angle</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nRadiant</code> the angle whose tangent is <code>nTangent</code></div>
<div class="d-d">Description</div>
<div class="d-it">The function <code>Atan()</code> is the inverse function of <code><a href="#tan">Tan()</a></code>. It takes a tangent value and returns the smallest(!) angle whose tangent equals to the argument. The return value is given in radiants between <code>-<code><a href="#pi">Pi()</a></code> / 2</code> and <code><code><a href="#pi">Pi()</a></code> / 2</code> (full angle equals <code>2 * <code><a href="#pi">Pi()</a></code></code> - see <code><a href="#dtor">DToR()</a></code> if you need to convert it into degrees).</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? Atan( 0.0 ) // --> 0.0
? Atan( 0.5 ) // --> 0.4636...
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 math functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#acos">Acos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#acos">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#asin">Asin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#asin">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#atan">Atan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#atan">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#cos">Cos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cos">Clipper Tools 3</a></nav></nav>, <code><a href="#cosh">Cosh()</a></code>, <nav class="dropdown"><code><a href="#cot">Cot()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cot">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#dtor">DToR()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#dtor">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#pi">Pi()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#pi">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#rtod">RToD()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#rtod">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#sin">Sin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#sin">Clipper Tools 3</a></nav></nav>, <code><a href="#sinh">Sinh()</a></code>, <nav class="dropdown"><code><a href="#tan">Tan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#tan">Clipper Tools 3</a></nav></nav>, <code><a href="#tanh">Tanh()</a></code></div>
</section>
<section>
<h4><a href="#atn2" class="d-id" id="atn2" title="∞"><code>Atn2()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/trig.c#L329" class="d-so" title="contrib/hbct/trig.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Atn2">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Atn2">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/trig.txt">Improve this doc</a></span></h4>
<div class="d-ol">Arcus tangent a sine and a cosine argument</div>
<div class="d-d">Syntax</div>
<div class="d-sy"><pre><code>Atn2( nSine, nCosine ) → nRadiant</code></pre></div>
<div class="d-d">Arguments</div>
<div class="d-it"><code>nSine</code> the sine of an angle <code>nCosine</code> the cosine of an angle</div>
<div class="d-d">Returns</div>
<div class="d-it"><code>nRadiant</code> the angle whose tangent is <code>nSine</code>/<code>nCosine</code></div>
<div class="d-d">Description</div>
<div class="d-it">The function <code>Atn2()</code> is an alternate function for calculating the arcus tangent, <code>Atn2( x, y )</code> = <code>Atan( x / y)</code>. It takes two arguments, the sine and the cosine of the angle that should be calculated. Thus, in contrast to the <code><a href="#atan">Atan()</a></code> function, <code>Atn2()</code> can distinguish whether the sine or the cosine has a negative sign (or both being positive or negative), so that the return value can be between <code>-<code><a href="#pi">Pi()</a></code></code> and <code><a href="#pi">Pi()</a></code> and covers the full angle. The return value is given in radiants (full angle equals <code>2 * <code><a href="#pi">Pi()</a></code></code> - see <code><a href="#dtor">DToR()</a></code> if you need to convert it into degrees).</div>
<div class="d-d">Examples</div>
<section class="d-ex"><div class="playground"><pre contenteditable="true" spellcheck="false"><code class="language-c">? Atn2( 0.0, 1.0 ) // --> 0.0
? Atn2( Sqrt( 1 / 2 ), Sqrt( 1 / 2 ) ) // --> Pi() / 4
</code></pre></div></section>
<div class="d-d">Status</div>
<div class="d-it">Ready</div>
<div class="d-d">Compliance</div>
<div class="d-it">CA-Cl*pper v5.x compatible</div>
<div class="d-d">Platforms</div>
<div class="d-it">Available on all platforms</div>
<div class="d-d">File</div>
<div class="d-it">Library is hbct.</div>
<div class="d-d">Tag</div>
<div class="d-it">CT3 math functions</div>
<div class="d-d">See also</div>
<div class="d-it"><nav class="dropdown"><code><a href="#acos">Acos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#acos">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#asin">Asin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#asin">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#atan">Atan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#atan">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#cos">Cos()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cos">Clipper Tools 3</a></nav></nav>, <code><a href="#cosh">Cosh()</a></code>, <nav class="dropdown"><code><a href="#cot">Cot()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#cot">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#dtor">DToR()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#dtor">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#pi">Pi()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#pi">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#rtod">RToD()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#rtod">Clipper Tools 3</a></nav></nav>, <nav class="dropdown"><code><a href="#sin">Sin()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#sin">Clipper Tools 3</a></nav></nav>, <code><a href="#sinh">Sinh()</a></code>, <nav class="dropdown"><code><a href="#tan">Tan()</a></code><nav class="dropdown-content d-dd"><a href="clct3.html#tan">Clipper Tools 3</a></nav></nav>, <code><a href="#tanh">Tanh()</a></code></div>
</section>
<section>
<h4><a href="#ceiling" class="d-id" id="ceiling" title="∞"><code>Ceiling()</code></a><a href="https://github.com/vszakats/hb/blob/096e855/contrib/hbct/ctmath2.c#L94" class="d-so" title="contrib/hbct/ctmath2.c">Source code</a><span class="d-so"><nav class="dropdown d-ebi">🔎<nav class="dropdown-content d-dd"><a href="https://github.com/vszakats/hb/search?type=Code&q=Ceiling">in Repository</a><a href="https://google.com/search?q=site:groups.google.com/d/msg/harbour+Ceiling">in Discussions</a></nav></nav></span>
<span class="d-eb"><a href="#" title="Top" class="d-ebi">⌃</a> | <a href="index.html" title="Index" class="d-ebi">☰</a> | <a href="https://github.com/vszakats/hb/edit/main/contrib/hbct/doc/en/ctmath2.txt">Improve this doc</a></span></h4>
<div class="d-ol">Rounds up a number to the next integer</div>
<div class="d-d">Syntax</div>