I am trying to use the output from the function the_time() (the time stamp) as input for a function that replaces it.
In other words, instead of using the_time() to display the time stamp on my page, I want to use my_function(), which takes the output from the_time() and then displays the time in a different format.
Unfortunately, I don't know enough about PHP & WordPress to work out how to take the output from the_time() and use it in my_function(). my_function() needs the time as a string, but I'm not sure what format the_time() produces and how to use it in my_function(). I've tried my_function(the_time()) but that doesn't work.
So my question is: how do I get the_time() to output a string that I can use in a function?
Thanks in advance.