what is equal to DateTimeOffset.Now from C# in php

Viewed 29

hello how is there something like DateTimeOffset.Now in php in C# it should return something like 1660991390 is there a way to do the same in php

1 Answers
echo time();

gives you the current unix timestamp.

1660991549
Related