mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[date-utilities] deprecate unused date selectors
This commit is contained in:
parent
26286e2f6e
commit
d316b01da7
@ -585,6 +585,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now)))
|
||||
|
||||
(define (gnc:get-start-next-year)
|
||||
(issue-deprecation-warning "gnc:get-start-next-year is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(set-tm:sec now 0)
|
||||
(set-tm:min now 0)
|
||||
@ -596,6 +597,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now)))
|
||||
|
||||
(define (gnc:get-end-next-year)
|
||||
(issue-deprecation-warning "gnc:get-end-next-year is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(set-tm:sec now 59)
|
||||
(set-tm:min now 59)
|
||||
@ -661,6 +663,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now)))
|
||||
|
||||
(define (gnc:get-start-next-month)
|
||||
(issue-deprecation-warning "gnc:get-start-next-month is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(set-tm:sec now 0)
|
||||
(set-tm:min now 0)
|
||||
@ -675,6 +678,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now)))
|
||||
|
||||
(define (gnc:get-end-next-month)
|
||||
(issue-deprecation-warning "gnc:get-end-next-month is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(set-tm:sec now 59)
|
||||
(set-tm:min now 59)
|
||||
@ -743,6 +747,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now)))
|
||||
|
||||
(define (gnc:get-start-next-quarter)
|
||||
(issue-deprecation-warning "gnc:get-start-next-quarter is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(set-tm:sec now 0)
|
||||
(set-tm:min now 0)
|
||||
@ -757,6 +762,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now)))
|
||||
|
||||
(define (gnc:get-end-next-quarter)
|
||||
(issue-deprecation-warning "gnc:get-end-next-quarter is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(set-tm:sec now 59)
|
||||
(set-tm:min now 59)
|
||||
@ -776,6 +782,7 @@ Defaulting to today."))
|
||||
(current-time))
|
||||
|
||||
(define (gnc:get-one-month-ago)
|
||||
(issue-deprecation-warning "gnc:get-one-month-ago is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(if (= (tm:mon now) 0)
|
||||
(begin
|
||||
@ -831,6 +838,7 @@ Defaulting to today."))
|
||||
(gnc-mktime now))))
|
||||
|
||||
(define (gnc:get-one-month-ahead)
|
||||
(issue-deprecation-warning "gnc:get-one-month-ahead is deprecated.")
|
||||
(let ((now (gnc-localtime (current-time))))
|
||||
(if (= (tm:mon now) 11)
|
||||
(begin
|
||||
|
Loading…
Reference in New Issue
Block a user