Convert DateTime to Unix TIme
Tags:
Unix Time
#1
toreno93
Hello, I have question.
My variable $EventTime contains DateTime in only this format "2017-12-30 01:30:00"
How me with use NxLog, convert to UNIX TIME format or convert to this format Dec 30 01:30:00.
Thank
#1
toreno93
Hello, I have question.
My variable $EventTime contains DateTime in only this format "2017-12-30 01:30:00"
How me with use NxLog, convert to UNIX TIME format or convert to this format Dec 30 01:30:00.
Thank
You can use the strftime() function.