How do I use Perl's localtime with print to get the timestamp?

后端 未结 5 556
Happy的楠姐
Happy的楠姐 2020-12-20 10:58

I have used the following statements to get the current time.

  print \"$query executed successfully at \",localtime;
  print \"$query executed successfully          


        
5条回答
  •  暖寄归人
    2020-12-20 11:56

    If you want to get the timestamp of the current time, you can just use function time()

提交回复
热议问题