Hi all
Firstly, thanks for reading my project.
This is in PHP and is run from the command line.
There are two inputs:
1. the date and time right now (i.e. the current timestamp)
2. a date in the past, for example, January 2010.
Starting at the date in the past, and working all the way to the current timestamp, the script should output the timestamp at the start and end of each month.
By start I mean 00:01 on the first day of the month, and by end I mean 23:59 on the last day of the month.
When the script reaches the current month (based on the current timestamp), it outputs the timestamp at the beginning of the month and the current timestamp.
So it would output something like this:
timestamp at 00:01, January 1, 2010
timestamp at 23:59, January 31, 2010
timestamp at 00:01, February 1, 2010
timestamp at 23:59, February 27, 2010
timestamp at 00:01, March 1, 2010
timestamp at 23:59, March 31, 2010
...
timestamp at 00:01, April 1, 2018
timestamp at 23:59, April 30, 2018
timestamp at 00:01, May 1, 2018
current timestamp
So you can see the tricky bit is figuring out how to get the date function to work itself through the start and end of each month based on a range of months.
Any questions, please ask.
NOTE COPY AND PASTE BIDS ABOUT YOUR WORDPRESS SKILLS, ETC. WILL BE IGNORED.
Hi, i m serious freelancer with 100% completion rate and i believe i can create you a function for timestamp calculation exactly as you described. I've done many similar date calculations in the past without having a single problem. If you are interested in working with me, please message me and i will try to create sample for you immediately.
Edit: I have the sample ready.
Thanks, Milan
$15 USD in 0 day
5.0 (238 reviews)
6.5
6.5
12 freelancers are bidding on average $25 USD for this job
Hi there,
Will the second argument be always a date in the past? What if the second argument is a date in future?
I have a 99% project completion rate and a 4.99 reputation (out of max 5.0 from more than 1100 projects over 11 years.
Thanks.
I look forward to hearing from you
Regards,
Rajesh Soni.
Hello,
I have gone through your requirements and I can understood it until we get the current timestamp. But I am not sure if anything needs to be done after that.
Look forward to discuss the details.
Thanks.
I can code the start and end dates for the requirements given in PHP. The PHP program will generate the start and end dates for each month from the current given month to the current date .
Thanks
Dear Sir,
A logic need to implement to compare dates and time to show up into the UI.
Also, just want to know if this would be done into one place or multiple.
I have 11 years of experience in customisation of Wordpress as per requirements.
Please ask any question to make this productive.
Thanks,
Deepak
I believe my skills are a match for your project. I have a good grasp of working with php, mysql.
So I would be easily able to achieve the task; converting your current website (with same or better design format).
I am looking for new opportunities so I can show clients my expertise and win their confidence to grab more jobs!
If given a chance to work with you I will make it success with all my efforts and expertise..!!