[wp-trac] [WordPress Trac] #61908: wp_date does not support micro seconds.

WordPress Trac noreply at wordpress.org
Thu Aug 22 12:19:29 UTC 2024


#61908: wp_date does not support micro seconds.
---------------------------+------------------------------
 Reporter:  dpeterson1971  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Date/Time      |     Version:  6.6
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+------------------------------

Comment (by narenin):

 Hi @dpeterson1971

 You are very welcome to the Core Trac!

 I have tried this and it is working fine, please let me know if I am
 missing anything.

 Please find the code I am using.


 {{{
 $date = wp_date('Y-m-d H:i:s.u',microtime( true ));
 var_dump( $date );
 }}}


 [[Image(https://prnt.sc/uixffJtXw9xo)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61908#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list