mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Create function gnc_tm_get_today_neutral.
To complement gnc_tm_get_today_begin and gnc_tm_get_today_end.
This commit is contained in:
parent
68aced362c
commit
a807d3e6b7
@ -1334,6 +1334,12 @@ gnc_tm_get_today_start (struct tm *tm)
|
||||
gnc_tm_get_day_start(tm, time(NULL));
|
||||
}
|
||||
|
||||
void
|
||||
gnc_tm_get_today_neutral (struct tm *tm)
|
||||
{
|
||||
gnc_tm_get_day_neutral(tm, time(NULL));
|
||||
}
|
||||
|
||||
void
|
||||
gnc_tm_get_today_end (struct tm *tm)
|
||||
{
|
||||
|
@ -576,7 +576,7 @@ void gnc_tm_set_day_end (struct tm *tm)
|
||||
time64 gnc_time64_get_day_start(time64 time_val);
|
||||
|
||||
/** The gnc_time64_get_day_neutral() routine will take the given time in
|
||||
* seconds and adjust it to 10:59am of that day. */
|
||||
* seconds and adjust it to 10:59:00Z of that day. */
|
||||
time64 gnc_time64_get_day_neutral(time64 time_val);
|
||||
|
||||
/** The gnc_time64_get_day_end() routine will take the given time in
|
||||
@ -596,6 +596,10 @@ int gnc_date_get_last_mday (int month, int year);
|
||||
* tm and fills it in with the first second of the today. */
|
||||
void gnc_tm_get_today_start(struct tm *tm);
|
||||
|
||||
/** The gnc_tm_get_today_start() routine takes a pointer to a struct
|
||||
* tm and fills it in with the timezone neutral time (10:59:00Z). */
|
||||
void gnc_tm_get_today_neutral(struct tm *tm);
|
||||
|
||||
/** The gnc_tm_get_today_end() routine takes a pointer to a struct
|
||||
* tm and fills it in with the last second of the today. */
|
||||
void gnc_tm_get_today_end(struct tm *tm);
|
||||
|
Loading…
Reference in New Issue
Block a user