Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Code for Substrating Months And Years function In Date Class
Re: Code for Substrating Months And Years function In Date Class [message #42000 is a reply to message #41998] Mon, 10 February 2014 13:30 Go to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
There is AddMonths, which allows negative month count.

Years are simple (no adjustment because of varying month len involved), just do d.year -= n;

Mirek
 
Read Message
Read Message
Previous Topic: Callback (THISBACK) Improve
Next Topic: proposal: bool Index::HasUnlinked()
Goto Forum:
  


Current Time: Tue Apr 29 23:25:00 CEST 2025

Total time taken to generate the page: 0.00794 seconds