I have a timestamp that is fetched from the database. Now I have to add 3 years to it.
- Is it possible to add 3 years in timestamp itself and then converting the date and time format ?
- or afte开发者_开发问答r converting into the date and time format we can add?
How to add 3 years with respect to leap year and all those?
For every non-leap year, add 365 * 86400 = 31536000.
For every leap year, add 366 * 86400 = 31622400.
加载中,请稍侯......
精彩评论