aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/classTimeValue.html
blob: d36a48fa9b89c934e66d2e5e2fb6859105504983 (plain)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: TimeValue Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>TimeValue Class Reference<br/>
<small>
[<a class="el" href="group__osclbase.html">OSCL Base</a>]</small>
</h1><!-- doxytag: class="TimeValue" -->
<p>The <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> class represents a time value in a format native to the system.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="oscl__time_8h_source.html">oscl_time.h</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#ae6e6e4de3f6c3f15d4b85cb8e326ec7c">TimeValue</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the current time.  <a href="#ae6e6e4de3f6c3f15d4b85cb8e326ec7c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#acc854cae24ac1ce654260a643b788e7b">TimeValue</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;Tv)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor.  <a href="#acc854cae24ac1ce654260a643b788e7b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#ab827cad6f7ed9e3de9a4e182b45682e7">TimeValue</a> (long tv, <a class="el" href="group__osclbase.html#ga0423d00e0eb199de523a92031b5a1107">TimeUnits</a> units)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing an interval of tv units.  <a href="#ab827cad6f7ed9e3de9a4e182b45682e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a80d41e171bfa10be7557e20ee09097cb">TimeValue</a> (const <a class="el" href="osclconfig__time_8h.html#ab01bd23ee2289f15064787af4d7987c2">OsclBasicTimeStruct</a> &amp;in_tv)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the absolute time specified by the BasicTimeStruct.  <a href="#a80d41e171bfa10be7557e20ee09097cb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a54a4dc65481d46bffad99e0ffdb9d02a">TimeValue</a> (const <a class="el" href="group__osclbase.html#ga83f7b514c3cbe5977e2916ca10e11869">ISO8601timeStrBuf</a> time_strbuf)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a307f80bb47e985539273e87c15bd86fa">TimeValue</a> (uint16 aYear, uint16 aMonth, uint16 aDay, uint16 aHour, uint16 aMinute, uint16 aSecond, uint16 aMilliseconds)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a688aa9e7301d85be1f95f01d16a1ae51">TimeValue</a> (<a class="el" href="osclconfig__time_8h.html#a4a97a869b4acfd18542e2595b8d7c4e7">OsclBasicDateTimeStruct</a> in_ts)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the absolute time specified by the BasicDateTimeStruct.  <a href="#a688aa9e7301d85be1f95f01d16a1ae51"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF int32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a7ecbe2227cb1991662f16abd8d19ff6e">get_local_time</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the local time after having adjusted for daylight saving.  <a href="#a7ecbe2227cb1991662f16abd8d19ff6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a95359a56b779c3a88cf7fdff3fa27c30">set_to_zero</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the time value to zero (represents a zero interval).  <a href="#a95359a56b779c3a88cf7fdff3fa27c30"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#ad89aee9120c19eeef8e05b945fc2db16">set_to_current_time</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the time value to the current system time.  <a href="#ad89aee9120c19eeef8e05b945fc2db16"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a4ca4ecff2883b66ac1ed275505c0b94f">set_from_ntp_time</a> (const uint32 ntp_offset)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This method coverts a 32-bit NTP offset to system time.  <a href="#a4ca4ecff2883b66ac1ed275505c0b94f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a71fcfd133e6605c2a30e6d6a8960e3a9">get_sec</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a 32 bit value representing the seconds since the (system dependent) epoch.  <a href="#a71fcfd133e6605c2a30e6d6a8960e3a9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF int32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a18fee4fabbc8dce260a1e41862c44668">to_msec</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a9d680f31f913704d5198926faeb79428">get_usec</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a 32 bit value representing the number of microseconds in the time value.  <a href="#a9d680f31f913704d5198926faeb79428"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="group__osclbase.html#gaeee93fd1c6230965ea7adc3e63fac06e">uint64</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a50d961266e2da540d1623cae93ce0675">get_timevalue_in_usec</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a 64 bit value representing the time value converted to microseconds.  <a href="#a50d961266e2da540d1623cae93ce0675"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#ad47f997045f2ed9170d970a996087e02">get_str_ctime</a> (<a class="el" href="group__osclbase.html#ga84d4ef38e5682881eb75ff4a64bc38b3">CtimeStrBuf</a> ctime_strbuf)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a string containing a text representation of this <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> object.  <a href="#ad47f997045f2ed9170d970a996087e02"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a51adea59c45f4e2a2e36ba7bef2cee82">get_pv8601_str_time</a> (<a class="el" href="group__osclbase.html#gad13c32c10063619e00563a850f87b86a">PV8601timeStrBuf</a> time_strbuf)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a PV extended text representation of the Time based on the PV 8601 format.  <a href="#a51adea59c45f4e2a2e36ba7bef2cee82"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a13869dceb034bb8f6eb15862ed8c2571">get_ISO8601_str_time</a> (<a class="el" href="group__osclbase.html#ga83f7b514c3cbe5977e2916ca10e11869">ISO8601timeStrBuf</a> time_strbuf)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a PV extended text representation of the Time based on the ISO 8601 format.  <a href="#a13869dceb034bb8f6eb15862ed8c2571"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#ab0a4ae24c295f5d4af53bffa018bdb1d">get_rfc822_gmtime_str</a> (int max_time_strlen, char *time_str)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a text representation of the time in the GMT timezone based on the RFC 822 / RFC 1123 (also described in the HTTP spec RFC 2068 and RFC 2616.  <a href="#ab0a4ae24c295f5d4af53bffa018bdb1d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#abf7e1154e1fdf8d766bfc5a1584953ef">is_zero</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Determine if the time value is zero.  <a href="#abf7e1154e1fdf8d766bfc5a1584953ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a4d37d99e956feeed68a26f7717db922b">is_zulu</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Manipulate internal flags to mark the time value as being in "zulu" (GMT) time.  <a href="#a4d37d99e956feeed68a26f7717db922b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a99e53d116eeb672f88077892e041bb03">set_zulu</a> (bool is_zulu)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a00f26f7cca5b333afed89cfc4e5ee744">operator=</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator.  <a href="#a00f26f7cca5b333afed89cfc4e5ee744"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a4d1f0bc4e19da07d94e142aeb94dd4df">operator+=</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">+= operator  <a href="#a4d1f0bc4e19da07d94e142aeb94dd4df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a8e9250ee5c1df4944140c239cb532de5">operator-=</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">-= operator  <a href="#a8e9250ee5c1df4944140c239cb532de5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a0a0fb2c8d8c7741baa98a86a589f4417">operator*=</a> (const int scale)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This operator scales the time value by a constant.  <a href="#a0a0fb2c8d8c7741baa98a86a589f4417"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <br class="typebreak"/>
<a class="el" href="osclconfig__time_8h.html#ab01bd23ee2289f15064787af4d7987c2">OsclBasicTimeStruct</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a6491a112e68e573fd55cd6966d03e205">get_timeval_ptr</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#af09390ae1ef600b377e406eacc65c4aa">operator+=</a> (const int32 aSeconds)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a16391f301025f7ef6a7de78f1f4b70ff">operator-=</a> (const int32 aSeconds)</td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a9eac0a25e89423e01a05e1f6bbc14037">NTPTime</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF friend bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a6a5c2ea2d94bb0fdb5d5af8e1ed50b5c">operator==</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF friend bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a18a32f0b410927cafb789a3b9cb7efe6">operator!=</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF friend bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a07570cbacf3f35e631fc9d93fd78c380">operator&lt;=</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF friend bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#ae40ba42833ace5f25b4ab1f9e3b11038">operator&gt;=</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF friend bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#af7cea094fff4b84111a3f17644fa8774">operator&lt;</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_COND_IMPORT_REF friend bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTimeValue.html#a6347cf35df9ecabf309857fe829ddeb6">operator&gt;</a> (const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;a, const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;b)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> class represents a time value in a format native to the system. </p>
<p>This class provides common time functions independent of any OS. The actual representation used is native to the system that the class is compiled on to increase efficiency. Macros used in this class:</p>
<ul>
<li>OSCL_HAS_ANSI_STRING_SUPPORT:</li>
</ul>
<p>Definitions to determine the type of basic time structure used to store the time</p>
<ul>
<li>OSCL_HAS_UNIX_TIME_FUNCS</li>
<li>OSCL_HAS_SYMBIAN_SUPPORT</li>
<li>OSCL_HAS_MSWIN_SUPPORT </li>
</ul>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae6e6e4de3f6c3f15d4b85cb8e326ec7c"></a><!-- doxytag: member="TimeValue::TimeValue" ref="ae6e6e4de3f6c3f15d4b85cb8e326ec7c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the current time. </p>

</div>
</div>
<a class="anchor" id="acc854cae24ac1ce654260a643b788e7b"></a><!-- doxytag: member="TimeValue::TimeValue" ref="acc854cae24ac1ce654260a643b788e7b" args="(const TimeValue &amp;Tv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>Tv</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy constructor. </p>

</div>
</div>
<a class="anchor" id="ab827cad6f7ed9e3de9a4e182b45682e7"></a><!-- doxytag: member="TimeValue::TimeValue" ref="ab827cad6f7ed9e3de9a4e182b45682e7" args="(long tv, TimeUnits units)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramtype">long&nbsp;</td>
          <td class="paramname"> <em>tv</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga0423d00e0eb199de523a92031b5a1107">TimeUnits</a>&nbsp;</td>
          <td class="paramname"> <em>units</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing an interval of tv units. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>tv</em>&nbsp;</td><td>The number of units in the interval to be represented by this <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>units</em>&nbsp;</td><td>The units of the tv argument. Must be in the enumeration TimeUnits. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a80d41e171bfa10be7557e20ee09097cb"></a><!-- doxytag: member="TimeValue::TimeValue" ref="a80d41e171bfa10be7557e20ee09097cb" args="(const OsclBasicTimeStruct &amp;in_tv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="osclconfig__time_8h.html#ab01bd23ee2289f15064787af4d7987c2">OsclBasicTimeStruct</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>in_tv</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the absolute time specified by the BasicTimeStruct. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>in_tv</em>&nbsp;</td><td>OsclBasicTimeStruct as defined for each platform. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a54a4dc65481d46bffad99e0ffdb9d02a"></a><!-- doxytag: member="TimeValue::TimeValue" ref="a54a4dc65481d46bffad99e0ffdb9d02a" args="(const ISO8601timeStrBuf time_strbuf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__osclbase.html#ga83f7b514c3cbe5977e2916ca10e11869">ISO8601timeStrBuf</a>&nbsp;</td>
          <td class="paramname"> <em>time_strbuf</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a307f80bb47e985539273e87c15bd86fa"></a><!-- doxytag: member="TimeValue::TimeValue" ref="a307f80bb47e985539273e87c15bd86fa" args="(uint16 aYear, uint16 aMonth, uint16 aDay, uint16 aHour, uint16 aMinute, uint16 aSecond, uint16 aMilliseconds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aYear</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aMonth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aDay</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aHour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aMinute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aSecond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16&nbsp;</td>
          <td class="paramname"> <em>aMilliseconds</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the absolute time specified by the year/month/day/hours/minutes/seconds/microseconds values passed as argument.</p>
<p><a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> constructor that sets time according to following input parameter for a specific date time. Please note that no argument is check for its validity (range etc) It might assert incase wrong argument are passed by user of this api. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wYear; </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wMonth; Jan = 1 to Dec = 12 </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wDay; 1-28/29/30/31 </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wHour; 0 to 23 </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wMinute; 0 to 59 </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wSecond; 0 to 59 </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>uint16</em>&nbsp;</td><td>wMilliseconds; 0 to 999 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a688aa9e7301d85be1f95f01d16a1ae51"></a><!-- doxytag: member="TimeValue::TimeValue" ref="a688aa9e7301d85be1f95f01d16a1ae51" args="(OsclBasicDateTimeStruct in_ts)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF TimeValue::TimeValue </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="osclconfig__time_8h.html#a4a97a869b4acfd18542e2595b8d7c4e7">OsclBasicDateTimeStruct</a>&nbsp;</td>
          <td class="paramname"> <em>in_ts</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> representing the absolute time specified by the BasicDateTimeStruct. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>in_ts</em>&nbsp;</td><td>OsclBasicDateTimeStruct as defined for each platform provides the date in a readable format (i.e. day, date , week etc.) Notes: Implementation incomplete (= not done) on Win32, Wince, Symbian </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a13869dceb034bb8f6eb15862ed8c2571"></a><!-- doxytag: member="TimeValue::get_ISO8601_str_time" ref="a13869dceb034bb8f6eb15862ed8c2571" args="(ISO8601timeStrBuf time_strbuf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF int TimeValue::get_ISO8601_str_time </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga83f7b514c3cbe5977e2916ca10e11869">ISO8601timeStrBuf</a>&nbsp;</td>
          <td class="paramname"> <em>time_strbuf</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a PV extended text representation of the Time based on the ISO 8601 format. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>time_strbuf</em>&nbsp;</td><td>A ISO8601timeStrBuf object to which the text representation will be written, </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of characters copied to the buffer, not including the terminating null. The returned string is of the form "1985-04-12 10:15:30Z". </dd></dl>

</div>
</div>
<a class="anchor" id="a7ecbe2227cb1991662f16abd8d19ff6e"></a><!-- doxytag: member="TimeValue::get_local_time" ref="a7ecbe2227cb1991662f16abd8d19ff6e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF int32 TimeValue::get_local_time </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the local time after having adjusted for daylight saving. </p>
<p>Notes: Implementation incomplete (= not done) on Win32, Wince, Symbian </p>

</div>
</div>
<a class="anchor" id="a51adea59c45f4e2a2e36ba7bef2cee82"></a><!-- doxytag: member="TimeValue::get_pv8601_str_time" ref="a51adea59c45f4e2a2e36ba7bef2cee82" args="(PV8601timeStrBuf time_strbuf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF int TimeValue::get_pv8601_str_time </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#gad13c32c10063619e00563a850f87b86a">PV8601timeStrBuf</a>&nbsp;</td>
          <td class="paramname"> <em>time_strbuf</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a PV extended text representation of the Time based on the PV 8601 format. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>time_strbuf</em>&nbsp;</td><td>A PV8601timeStrBuf object to which the text representation will be written, </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of characters copied to the buffer, not including the terminating null. The returned string is of the form "19850412T101530.047Z". </dd></dl>

</div>
</div>
<a class="anchor" id="ab0a4ae24c295f5d4af53bffa018bdb1d"></a><!-- doxytag: member="TimeValue::get_rfc822_gmtime_str" ref="ab0a4ae24c295f5d4af53bffa018bdb1d" args="(int max_time_strlen, char *time_str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF char* TimeValue::get_rfc822_gmtime_str </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>max_time_strlen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>time_str</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a text representation of the time in the GMT timezone based on the RFC 822 / RFC 1123 (also described in the HTTP spec RFC 2068 and RFC 2616. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>max_time_strlen</em>&nbsp;</td><td>The maximum number of characters that can be written to the buffer. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>time_str</em>&nbsp;</td><td>A pointer to the buffer to which the characters will be written. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a pointer to the buffer (same as time_str) containing a null terminated (c-style) string of the form "Wed, 30 Jun 1993 21:49:08 GMT". </dd></dl>

</div>
</div>
<a class="anchor" id="a71fcfd133e6605c2a30e6d6a8960e3a9"></a><!-- doxytag: member="TimeValue::get_sec" ref="a71fcfd133e6605c2a30e6d6a8960e3a9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF uint32 TimeValue::get_sec </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a 32 bit value representing the seconds since the (system dependent) epoch. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>This call returns a 32 bit value representing the nubmer of seconds since the epoch. On unix systems this represents the number of seconds since the unix epoch Jan 1 1970. On Win32 this represents the number of seconds since Jan 1, 1601. This is intended to be used for intervals rather than for absolute time. (On Win32 for example, a 32 bit value would be too small to represent the number of seconds from the epoch until the current time.) </dd></dl>

</div>
</div>
<a class="anchor" id="ad47f997045f2ed9170d970a996087e02"></a><!-- doxytag: member="TimeValue::get_str_ctime" ref="ad47f997045f2ed9170d970a996087e02" args="(CtimeStrBuf ctime_strbuf)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF char* TimeValue::get_str_ctime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga84d4ef38e5682881eb75ff4a64bc38b3">CtimeStrBuf</a>&nbsp;</td>
          <td class="paramname"> <em>ctime_strbuf</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a string containing a text representation of this <a class="el" href="classTimeValue.html" title="The TimeValue class represents a time value in a format native to the system.">TimeValue</a> object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>ctime_strbuf</em>&nbsp;</td><td>A CtimeStrBuf object to which the text representation will be written, </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the input CtimeStrBuf is returned. This string is null terminated of the form "Wed Jun 30 21:49:08 1993". </dd></dl>

</div>
</div>
<a class="anchor" id="a6491a112e68e573fd55cd6966d03e205"></a><!-- doxytag: member="TimeValue::get_timeval_ptr" ref="a6491a112e68e573fd55cd6966d03e205" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="osclconfig__time_8h.html#ab01bd23ee2289f15064787af4d7987c2">OsclBasicTimeStruct</a>* TimeValue::get_timeval_ptr </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a50d961266e2da540d1623cae93ce0675"></a><!-- doxytag: member="TimeValue::get_timevalue_in_usec" ref="a50d961266e2da540d1623cae93ce0675" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="group__osclbase.html#gaeee93fd1c6230965ea7adc3e63fac06e">uint64</a> TimeValue::get_timevalue_in_usec </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a 64 bit value representing the time value converted to microseconds. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a uint64 value representing the time value in terms of microseconds.The The time origin is dependent on platform for which OSCL is compiled. For example for symbian it is midnight, January 1st, 0 AD for windows it is January 1, 1601 (UTC) </dd></dl>

</div>
</div>
<a class="anchor" id="a9d680f31f913704d5198926faeb79428"></a><!-- doxytag: member="TimeValue::get_usec" ref="a9d680f31f913704d5198926faeb79428" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF uint32 TimeValue::get_usec </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a 32 bit value representing the number of microseconds in the time value. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a uint32 value representing the number of microseconds in the time value after subtracting off the whole seconds. </dd></dl>

</div>
</div>
<a class="anchor" id="abf7e1154e1fdf8d766bfc5a1584953ef"></a><!-- doxytag: member="TimeValue::is_zero" ref="abf7e1154e1fdf8d766bfc5a1584953ef" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF bool TimeValue::is_zero </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determine if the time value is zero. </p>

</div>
</div>
<a class="anchor" id="a4d37d99e956feeed68a26f7717db922b"></a><!-- doxytag: member="TimeValue::is_zulu" ref="a4d37d99e956feeed68a26f7717db922b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF bool TimeValue::is_zulu </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Manipulate internal flags to mark the time value as being in "zulu" (GMT) time. </p>

</div>
</div>
<a class="anchor" id="a0a0fb2c8d8c7741baa98a86a589f4417"></a><!-- doxytag: member="TimeValue::operator*=" ref="a0a0fb2c8d8c7741baa98a86a589f4417" args="(const int scale)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&amp; TimeValue::operator*= </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>scale</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This operator scales the time value by a constant. </p>

</div>
</div>
<a class="anchor" id="af09390ae1ef600b377e406eacc65c4aa"></a><!-- doxytag: member="TimeValue::operator+=" ref="af09390ae1ef600b377e406eacc65c4aa" args="(const int32 aSeconds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&amp; TimeValue::operator+= </td>
          <td>(</td>
          <td class="paramtype">const int32&nbsp;</td>
          <td class="paramname"> <em>aSeconds</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4d1f0bc4e19da07d94e142aeb94dd4df"></a><!-- doxytag: member="TimeValue::operator+=" ref="a4d1f0bc4e19da07d94e142aeb94dd4df" args="(const TimeValue &amp;a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&amp; TimeValue::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>+= operator </p>

</div>
</div>
<a class="anchor" id="a16391f301025f7ef6a7de78f1f4b70ff"></a><!-- doxytag: member="TimeValue::operator&#45;=" ref="a16391f301025f7ef6a7de78f1f4b70ff" args="(const int32 aSeconds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&amp; TimeValue::operator-= </td>
          <td>(</td>
          <td class="paramtype">const int32&nbsp;</td>
          <td class="paramname"> <em>aSeconds</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8e9250ee5c1df4944140c239cb532de5"></a><!-- doxytag: member="TimeValue::operator&#45;=" ref="a8e9250ee5c1df4944140c239cb532de5" args="(const TimeValue &amp;a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&amp; TimeValue::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>-= operator </p>

</div>
</div>
<a class="anchor" id="a00f26f7cca5b333afed89cfc4e5ee744"></a><!-- doxytag: member="TimeValue::operator=" ref="a00f26f7cca5b333afed89cfc4e5ee744" args="(const TimeValue &amp;a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF <a class="el" href="classTimeValue.html">TimeValue</a>&amp; TimeValue::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assignment operator. </p>

</div>
</div>
<a class="anchor" id="a4ca4ecff2883b66ac1ed275505c0b94f"></a><!-- doxytag: member="TimeValue::set_from_ntp_time" ref="a4ca4ecff2883b66ac1ed275505c0b94f" args="(const uint32 ntp_offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF void TimeValue::set_from_ntp_time </td>
          <td>(</td>
          <td class="paramtype">const uint32&nbsp;</td>
          <td class="paramname"> <em>ntp_offset</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This method coverts a 32-bit NTP offset to system time. </p>
<p>This method takes a 32-bit ntp offset which is the number of seconds from 0 h Jan 1, 1900 and converts it to the system time </p>

</div>
</div>
<a class="anchor" id="ad89aee9120c19eeef8e05b945fc2db16"></a><!-- doxytag: member="TimeValue::set_to_current_time" ref="ad89aee9120c19eeef8e05b945fc2db16" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF void TimeValue::set_to_current_time </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the time value to the current system time. </p>

</div>
</div>
<a class="anchor" id="a95359a56b779c3a88cf7fdff3fa27c30"></a><!-- doxytag: member="TimeValue::set_to_zero" ref="a95359a56b779c3a88cf7fdff3fa27c30" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF void TimeValue::set_to_zero </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the time value to zero (represents a zero interval). </p>

</div>
</div>
<a class="anchor" id="a99e53d116eeb672f88077892e041bb03"></a><!-- doxytag: member="TimeValue::set_zulu" ref="a99e53d116eeb672f88077892e041bb03" args="(bool is_zulu)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF void TimeValue::set_zulu </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>is_zulu</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a18fee4fabbc8dce260a1e41862c44668"></a><!-- doxytag: member="TimeValue::to_msec" ref="a18fee4fabbc8dce260a1e41862c44668" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF int32 TimeValue::to_msec </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a9eac0a25e89423e01a05e1f6bbc14037"></a><!-- doxytag: member="TimeValue::NTPTime" ref="a9eac0a25e89423e01a05e1f6bbc14037" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="classNTPTime.html">NTPTime</a><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a18a32f0b410927cafb789a3b9cb7efe6"></a><!-- doxytag: member="TimeValue::operator!=" ref="a18a32f0b410927cafb789a3b9cb7efe6" args="(const TimeValue &amp;a, const TimeValue &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF friend bool operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af7cea094fff4b84111a3f17644fa8774"></a><!-- doxytag: member="TimeValue::operator&lt;" ref="af7cea094fff4b84111a3f17644fa8774" args="(const TimeValue &amp;a, const TimeValue &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF friend bool operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a07570cbacf3f35e631fc9d93fd78c380"></a><!-- doxytag: member="TimeValue::operator&lt;=" ref="a07570cbacf3f35e631fc9d93fd78c380" args="(const TimeValue &amp;a, const TimeValue &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF friend bool operator&lt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6a5c2ea2d94bb0fdb5d5af8e1ed50b5c"></a><!-- doxytag: member="TimeValue::operator==" ref="a6a5c2ea2d94bb0fdb5d5af8e1ed50b5c" args="(const TimeValue &amp;a, const TimeValue &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF friend bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6347cf35df9ecabf309857fe829ddeb6"></a><!-- doxytag: member="TimeValue::operator&gt;" ref="a6347cf35df9ecabf309857fe829ddeb6" args="(const TimeValue &amp;a, const TimeValue &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF friend bool operator&gt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae40ba42833ace5f25b4ab1f9e3b11038"></a><!-- doxytag: member="TimeValue::operator&gt;=" ref="ae40ba42833ace5f25b4ab1f9e3b11038" args="(const TimeValue &amp;a, const TimeValue &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_COND_IMPORT_REF friend bool operator&gt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classTimeValue.html">TimeValue</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="oscl__time_8h_source.html">oscl_time.h</a></li>
</ul>
</div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.005.1.1 </small>
</small></address>
</body>
</html>