/    Sign up×
Community /Pin to ProfileBookmark

how to calculate the time a case of the example below

example =

1322896113 = 03 Dec 2011 02:08 PM

How to convert 1322896113 become 03 Dec 2011 02:08 PM

Anyone have the formula…? ?
Thanks Before ?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@bionoidDec 03.2011 — In this case you could just use the PHP date function, provided that the input you're providing is a unix timestamp:

[code=php]echo date('d M Y h:i A', 1322896113);[/code]

You can see the formatting parameters here:

http://php.net/manual/en/function.date.php
×

Success!

Help @doublebackflip spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...