Created
July 13, 2015 15:51
-
-
Save modemlooper/a8c4579354df41ed3525 to your computer and use it in GitHub Desktop.
convert date to human readable ( 6 days ago )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sprintf( __( '%1$s ago', 'example' ), human_time_diff( strtotime( $post->post_date ), current_time('timestamp') ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment