Hi there,
I'm trying to add 1 second incrementally to a timestamp while looping
through it and I am pulling my hair out.
Please can someone help me?
example of code:
$calc_timestamp =
date('YmdHis',m ktime(date('H') ,date('i'),date ('s')-50,date('m'),da te('d'),date('Y ')));
This gets the timestamp to be 50 seconds before the time now.
I want to loop through the 50 itmes and add them to a table, but
incremntally increase the timestamp by 1 second and then post it to the
table so that the final item will have the timestamp as at the time of
posting the information
Please help!
Andrew
I'm trying to add 1 second incrementally to a timestamp while looping
through it and I am pulling my hair out.
Please can someone help me?
example of code:
$calc_timestamp =
date('YmdHis',m ktime(date('H') ,date('i'),date ('s')-50,date('m'),da te('d'),date('Y ')));
This gets the timestamp to be 50 seconds before the time now.
I want to loop through the 50 itmes and add them to a table, but
incremntally increase the timestamp by 1 second and then post it to the
table so that the final item will have the timestamp as at the time of
posting the information
Please help!
Andrew
Comment