Codebase list libhdate / run/841342d9-316d-4f55-a179-9e154046f3ac/main docs / man / man3 / hdate_Hdate.3
run/841342d9-316d-4f55-a179-9e154046f3ac/main

Tree @run/841342d9-316d-4f55-a179-9e154046f3ac/main (Download .tar.gz)

hdate_Hdate.3 @run/841342d9-316d-4f55-a179-9e154046f3ac/mainraw · history · blame

  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
.TH "hdate::Hdate" 3 "6 Jan 2008" "Version 1.4" "libhdate C++ language" \" -*- nroff -*-
.ad l
.nh
.SH NAME
hdate::Hdate \- \fBHdate\fP class.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <hdatepp.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBHdate\fP ()"
.br
.RI "\fI\fBHdate\fP constructor. \fP"
.ti -1c
.RI "\fB~Hdate\fP ()"
.br
.RI "\fI\fBHdate\fP destructor. \fP"
.ti -1c
.RI "void \fBset_gdate\fP (int d, int m, int y)"
.br
.RI "\fIcompute date structure from the Gregorian date \fP"
.ti -1c
.RI "void \fBset_hdate\fP (int d, int m, int y)"
.br
.RI "\fIcompute date structure from the Hebrew date \fP"
.ti -1c
.RI "void \fBset_jd\fP (int jd)"
.br
.RI "\fIcompute date structure from the Julian day \fP"
.ti -1c
.RI "char * \fBget_format_date\fP (int s)"
.br
.RI "\fIget formated hebrew date. \fP"
.ti -1c
.RI "char * \fBget_day_of_week_string\fP (int s)"
.br
.RI "\fIget name of week day. \fP"
.ti -1c
.RI "char * \fBget_month_string\fP (int s)"
.br
.RI "\fIget name month. \fP"
.ti -1c
.RI "char * \fBget_hebrew_month_string\fP (int s)"
.br
.RI "\fIget name hebrew month. \fP"
.ti -1c
.RI "char * \fBget_holyday_string\fP (int s)"
.br
.RI "\fIget name hebrew holiday. \fP"
.ti -1c
.RI "int \fBget_holyday_type\fP ()"
.br
.RI "\fIget the hebrew holiday type. \fP"
.ti -1c
.RI "char * \fBget_parasha_string\fP (int s)"
.br
.RI "\fIget name hebrew parasha. \fP"
.ti -1c
.RI "char * \fBget_hebrew_year_string\fP ()"
.br
.RI "\fIget name hebrew year. \fP"
.ti -1c
.RI "char * \fBget_hebrew_day_string\fP ()"
.br
.RI "\fIget name hebrew hebrew day of the month \fP"
.ti -1c
.RI "int \fBget_parasha\fP ()"
.br
.RI "\fIget parash number \fP"
.ti -1c
.RI "int \fBget_holyday\fP ()"
.br
.RI "\fIget holiday number \fP"
.ti -1c
.RI "int \fBget_gday\fP ()"
.br
.RI "\fIget Gregorian day of the month \fP"
.ti -1c
.RI "int \fBget_gmonth\fP ()"
.br
.RI "\fIget Gregorian month \fP"
.ti -1c
.RI "int \fBget_gyear\fP ()"
.br
.RI "\fIget Gregorian year \fP"
.ti -1c
.RI "int \fBget_hday\fP ()"
.br
.RI "\fIget Hebrew day of the month \fP"
.ti -1c
.RI "int \fBget_hmonth\fP ()"
.br
.RI "\fIget Hebrew month \fP"
.ti -1c
.RI "int \fBget_hyear\fP ()"
.br
.RI "\fIget Hebrew year \fP"
.ti -1c
.RI "int \fBget_day_of_the_week\fP ()"
.br
.RI "\fIget the day of the week \fP"
.ti -1c
.RI "int \fBget_size_of_year\fP ()"
.br
.RI "\fIget the size of the Hebrew year in days \fP"
.ti -1c
.RI "int \fBget_new_year_day_of_the_week\fP ()"
.br
.RI "\fIget the day of the week of hebrew new years \fP"
.ti -1c
.RI "int \fBget_julian\fP ()"
.br
.RI "\fIget the Julian day number \fP"
.ti -1c
.RI "int \fBget_days\fP ()"
.br
.RI "\fIget the number of days sice Tishrey I \fP"
.ti -1c
.RI "int \fBget_weeks\fP ()"
.br
.RI "\fIget the number of weeks sice Tishrey I \fP"
.ti -1c
.RI "void \fBset_location\fP (double in_latitude, double in_longitude, int in_tz)"
.br
.RI "\fIset location \fP"
.ti -1c
.RI "int \fBget_sunrise\fP ()"
.br
.RI "\fIsunrise time \fP"
.ti -1c
.RI "int \fBget_sunset\fP ()"
.br
.RI "\fIsunset time \fP"
.ti -1c
.RI "int \fBget_first_light\fP ()"
.br
.RI "\fIfirst light time \fP"
.ti -1c
.RI "int \fBget_talit\fP ()"
.br
.RI "\fItalit time \fP"
.ti -1c
.RI "int \fBget_first_stars\fP ()"
.br
.RI "\fIfirst stars time \fP"
.ti -1c
.RI "int \fBget_three_stars\fP ()"
.br
.RI "\fIthree stars time \fP"
.ti -1c
.RI "int \fBget_sun_hour\fP ()"
.br
.RI "\fIsun light hour time \fP"
.ti -1c
.RI "int \fBget_midday\fP ()"
.br
.RI "\fImidday hour time \fP"
.ti -1c
.RI "char * \fBget_translator_string\fP ()"
.br
.RI "\fIname of translator \fP"
.ti -1c
.RI "void \fBset_diaspora\fP ()"
.br
.RI "\fIset this \fBhdate\fP object to use diaspora holidays and dates \fP"
.ti -1c
.RI "void \fBset_israel\fP ()"
.br
.RI "\fIset this \fBhdate\fP object to use israel holidays and dates \fP"
.in -1c
.SH "Detailed Description"
.PP 
\fBHdate\fP class. 

class for Hebrew/Gregorian date conversions 
.SH "Constructor & Destructor Documentation"
.PP 
.SS "hdate::Hdate::Hdate ()\fC [inline]\fP"
.PP
\fBHdate\fP constructor. 
.PP
.SS "hdate::Hdate::~Hdate ()\fC [inline]\fP"
.PP
\fBHdate\fP destructor. 
.PP
.SH "Member Function Documentation"
.PP 
.SS "void hdate::Hdate::set_gdate (int d, int m, int y)\fC [inline]\fP"
.PP
compute date structure from the Gregorian date 
.PP
\fBParameters:\fP
.RS 4
\fId\fP Day of month 1..31 
.br
\fIm\fP Month 1..12 , if m or d is 0 return current date. 
.br
\fIy\fP Year in 4 digits e.g. 2001 
.RE
.PP

.SS "void hdate::Hdate::set_hdate (int d, int m, int y)\fC [inline]\fP"
.PP
compute date structure from the Hebrew date 
.PP
\fBParameters:\fP
.RS 4
\fId\fP Day of month 1..31 
.br
\fIm\fP Month 1..14 , if m or d is 0 return current date. 
.br
\fIy\fP Year in 4 digits e.g. 5731 
.RE
.PP

.SS "void hdate::Hdate::set_jd (int jd)\fC [inline]\fP"
.PP
compute date structure from the Julian day 
.PP
\fBParameters:\fP
.RS 4
\fIjd\fP the julian day number. 
.RE
.PP

.SS "char* hdate::Hdate::get_format_date (int s)\fC [inline]\fP"
.PP
get formated hebrew date. 
.PP
return the short ( e.g. '1 Tishrey' ) or long (e.g. 'Tuesday 18 Tishrey 5763 Hol hamoed Sukot' ) formated date.
.PP
\fBParameters:\fP
.RS 4
\fIs\fP short flag. 
.RE
.PP
\fBReturns:\fP
.RS 4
a static string of foramted date 
.RE
.PP

.SS "char* hdate::Hdate::get_day_of_week_string (int s)\fC [inline]\fP"
.PP
get name of week day. 
.PP
\fBParameters:\fP
.RS 4
\fIs\fP short flag true - returns a short string: sun, false returns: sunday. 
.RE
.PP
\fBReturns:\fP
.RS 4
a static string of the day of the week 
.RE
.PP

.SS "char* hdate::Hdate::get_month_string (int s)\fC [inline]\fP"
.PP
get name month. 
.PP
\fBParameters:\fP
.RS 4
\fIs\fP short flag true - returns a short string: Mar, false returns: March. 
.RE
.PP
\fBReturns:\fP
.RS 4
a static string of month name 
.RE
.PP

.SS "char* hdate::Hdate::get_hebrew_month_string (int s)\fC [inline]\fP"
.PP
get name hebrew month. 
.PP
\fBParameters:\fP
.RS 4
\fIs\fP short flag true - returns a short string. 
.RE
.PP
\fBReturns:\fP
.RS 4
a static string of hebrew month name 
.RE
.PP

.SS "char* hdate::Hdate::get_holyday_string (int s)\fC [inline]\fP"
.PP
get name hebrew holiday. 
.PP
\fBParameters:\fP
.RS 4
\fIs\fP short flag true - returns a short string. 
.RE
.PP
\fBReturns:\fP
.RS 4
a static string of hebrew holiday name 
.RE
.PP

.SS "int hdate::Hdate::get_holyday_type ()\fC [inline]\fP"
.PP
get the hebrew holiday type. 
.PP
\fBReturns:\fP
.RS 4
the holiday type (1- regular holyday, 2- three regels, 3- tzom, 0- no holiday) 
.RE
.PP

.SS "char* hdate::Hdate::get_parasha_string (int s)\fC [inline]\fP"
.PP
get name hebrew parasha. 
.PP
\fBParameters:\fP
.RS 4
\fIs\fP short flag true - returns a short string. 
.RE
.PP
\fBReturns:\fP
.RS 4
a static string of hebrew parash name 
.RE
.PP

.SS "char* hdate::Hdate::get_hebrew_year_string ()\fC [inline]\fP"
.PP
get name hebrew year. 
.PP
\fBReturns:\fP
.RS 4
a static string of hebrew year 
.RE
.PP

.SS "char* hdate::Hdate::get_hebrew_day_string ()\fC [inline]\fP"
.PP
get name hebrew hebrew day of the month 
.PP
\fBReturns:\fP
.RS 4
a static string of hebrew day of the month 
.RE
.PP

.SS "int hdate::Hdate::get_parasha ()\fC [inline]\fP"
.PP
get parash number 
.PP
\fBReturns:\fP
.RS 4
the hebrew parasha number 
.RE
.PP

.SS "int hdate::Hdate::get_holyday ()\fC [inline]\fP"
.PP
get holiday number 
.PP
\fBReturns:\fP
.RS 4
the hebrew holiday number 
.RE
.PP

.SS "int hdate::Hdate::get_gday ()\fC [inline]\fP"
.PP
get Gregorian day of the month 
.PP
\fBReturns:\fP
.RS 4
the Gregorian day of the month 
.RE
.PP

.SS "int hdate::Hdate::get_gmonth ()\fC [inline]\fP"
.PP
get Gregorian month 
.PP
\fBReturns:\fP
.RS 4
the Gregorian month 
.RE
.PP

.SS "int hdate::Hdate::get_gyear ()\fC [inline]\fP"
.PP
get Gregorian year 
.PP
\fBReturns:\fP
.RS 4
the Gregorian year 
.RE
.PP

.SS "int hdate::Hdate::get_hday ()\fC [inline]\fP"
.PP
get Hebrew day of the month 
.PP
\fBReturns:\fP
.RS 4
the Hebrew day of the month 
.RE
.PP

.SS "int hdate::Hdate::get_hmonth ()\fC [inline]\fP"
.PP
get Hebrew month 
.PP
\fBReturns:\fP
.RS 4
the Hebrew month 
.RE
.PP

.SS "int hdate::Hdate::get_hyear ()\fC [inline]\fP"
.PP
get Hebrew year 
.PP
\fBReturns:\fP
.RS 4
the Hebrew year 
.RE
.PP

.SS "int hdate::Hdate::get_day_of_the_week ()\fC [inline]\fP"
.PP
get the day of the week 
.PP
\fBReturns:\fP
.RS 4
the day of the week 
.RE
.PP

.SS "int hdate::Hdate::get_size_of_year ()\fC [inline]\fP"
.PP
get the size of the Hebrew year in days 
.PP
\fBReturns:\fP
.RS 4
the size of the Hebrew year in days 
.RE
.PP

.SS "int hdate::Hdate::get_new_year_day_of_the_week ()\fC [inline]\fP"
.PP
get the day of the week of hebrew new years 
.PP
\fBReturns:\fP
.RS 4
the day of the week of hebrew new years 
.RE
.PP

.SS "int hdate::Hdate::get_julian ()\fC [inline]\fP"
.PP
get the Julian day number 
.PP
\fBReturns:\fP
.RS 4
the Julian day number 
.RE
.PP

.SS "int hdate::Hdate::get_days ()\fC [inline]\fP"
.PP
get the number of days sice Tishrey I 
.PP
\fBReturns:\fP
.RS 4
the the number of days sice Tishrey I 
.RE
.PP

.SS "int hdate::Hdate::get_weeks ()\fC [inline]\fP"
.PP
get the number of weeks sice Tishrey I 
.PP
\fBReturns:\fP
.RS 4
the the number of weeks sice Tishrey I 
.RE
.PP

.SS "void hdate::Hdate::set_location (double in_latitude, double in_longitude, int in_tz)\fC [inline]\fP"
.PP
set location 
.PP
\fBParameters:\fP
.RS 4
\fIin_longitude\fP longitude to use in calculations degrees, negative values are east 
.br
\fIin_latitude\fP latitude to use in calculations degrees, negative values are south 
.br
\fIin_tz\fP time zone 
.RE
.PP

.SS "int hdate::Hdate::get_sunrise ()\fC [inline]\fP"
.PP
sunrise time 
.PP
\fBReturns:\fP
.RS 4
sunrise in minutes after midnight (00:00) 
.RE
.PP

.SS "int hdate::Hdate::get_sunset ()\fC [inline]\fP"
.PP
sunset time 
.PP
\fBReturns:\fP
.RS 4
sunset in minutes after midnight (00:00) 
.RE
.PP

.SS "int hdate::Hdate::get_first_light ()\fC [inline]\fP"
.PP
first light time 
.PP
\fBReturns:\fP
.RS 4
first light in minutes after midnight (00:00) 
.RE
.PP

.SS "int hdate::Hdate::get_talit ()\fC [inline]\fP"
.PP
talit time 
.PP
\fBReturns:\fP
.RS 4
talit time in minutes after midnight (00:00) 
.RE
.PP

.SS "int hdate::Hdate::get_first_stars ()\fC [inline]\fP"
.PP
first stars time 
.PP
\fBReturns:\fP
.RS 4
first stars in minutes after midnight (00:00) 
.RE
.PP

.SS "int hdate::Hdate::get_three_stars ()\fC [inline]\fP"
.PP
three stars time 
.PP
\fBReturns:\fP
.RS 4
three stars in minutes after midnight (00:00) 
.RE
.PP

.SS "int hdate::Hdate::get_sun_hour ()\fC [inline]\fP"
.PP
sun light hour time 
.PP
\fBReturns:\fP
.RS 4
sun light hour in minutes 
.RE
.PP

.SS "int hdate::Hdate::get_midday ()\fC [inline]\fP"
.PP
midday hour time 
.PP
\fBReturns:\fP
.RS 4
midday hour in minutes 
.RE
.PP

.SS "char* hdate::Hdate::get_translator_string ()\fC [inline]\fP"
.PP
name of translator 
.PP
\fBReturns:\fP
.RS 4
a static string with name of translator, or NULL if none 
.RE
.PP

.SS "void hdate::Hdate::set_diaspora ()\fC [inline]\fP"
.PP
set this \fBhdate\fP object to use diaspora holidays and dates 
.PP
.SS "void hdate::Hdate::set_israel ()\fC [inline]\fP"
.PP
set this \fBhdate\fP object to use israel holidays and dates 
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for libhdate C++ language from the source code.