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

Time:08-21

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

CodePudding user response:

echo time();

gives you the current unix timestamp.

1660991549
  •  Tags:  
  • php
  • Related