Unfortunately, no - since PHP is not strongly typed, there is no concept of the type of time and, therefore, there is no means to convert between such a string and the value of "seconds".
Thus, in practice, people often split the line and propagate each section, as you mentioned.
John parker
source share