@ -634,10 +634,10 @@
( set-tm:mon now 11 )
( set-tm:year now ( - ( tm:year now ) 1 ) ) )
( set-tm:mon now ( - ( tm:mon now ) 1 ) ) )
( let ( ( month- length ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-length ( tm:mday now ) )
( set-tm:mday now month- length ) )
( let ( ( month- days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month- days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -650,7 +650,7 @@
( set:tm-mon now ( - ( tm:mon now ) 3 ) )
( let ( ( month-days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-days ( tm:mday now ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month-days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -664,7 +664,7 @@
( set:tm-mon now ( - ( tm:mon now ) 6 ) )
( let ( ( month-days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-days ( tm:mday now ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month-days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -673,8 +673,8 @@
( let ( ( now ( gnc-localtime ( current-time ) ) ) )
( set:tm-year now ( - ( tm:year now ) 1 ) )
( let ( ( month-days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-days ( tm:mday now ) )
( + ( tm:year now ) 1900 ) ) ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month-days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -686,10 +686,10 @@
( set-tm:mon now 0 )
( set-tm:year now ( + ( tm:year now ) 1 ) ) )
( set-tm:mon now ( + ( tm:mon now ) 1 ) ) )
( let ( ( month- length ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-length ( tm:mday now ) )
( set-tm:mday now month- length ) )
( let ( ( month- days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month- days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -699,10 +699,10 @@
( begin
( set:tm-mon now ( - ( tm:mon now ) 9 ) )
( set:tm-year now ( + ( tm:year now ) 1 ) )
( set:tm-mon now ( + ( tm:mon now ) 3 ) ) ) )
( set:tm-mon now ( + ( tm:mon now ) 3 ) ) ) )
( let ( ( month-days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-days ( tm:mday now ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month-days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -713,10 +713,10 @@
( begin
( set:tm-mon now ( - ( tm:mon now ) 6 ) )
( set:tm-year now ( + ( tm:year now ) 1 ) )
( set:tm-mon now ( + ( tm:mon now ) 6 ) ) ) )
( set:tm-mon now ( + ( tm:mon now ) 6 ) ) ) )
( let ( ( month-days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-days ( tm:mday now ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month-days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )
@ -725,8 +725,8 @@
( let ( ( now ( gnc-localtime ( current-time ) ) ) )
( set:tm-year now ( + ( tm:year now ) 1 ) )
( let ( ( month-days ( gnc:days-in-month ( + ( tm:mon now ) 1 )
( + ( tm:year now ) 1900 ) ) ) )
( if ( > month-days ( tm:mday now ) )
( + ( tm:year now ) 1900 ) ) ) )
( if ( < month-days ( tm:mday now ) )
( set-tm:mday now month-days ) )
( set-tm:isdst now -1 )
( gnc-mktime now ) ) ) )