How do I stop my e-mail subscription?
how many day between the two time format
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Java Programming > how many day between the two time format 1 October 2001 05:14:12

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

how many day between the two time format

Yang 1 October 2001 05:14:12
 i want to check about how many day between the two time format
like
$last_day=time format;
$today=time();
$between_day=?????(­$today-$last_day);
echo $between_day is the between day...




Add comment
Justin Garrett 1 October 2001 05:14:12 permanent link ]
 If both times are UNIX timestamps

$seconds_per_day = 60 * 60 * 24;
$dif = $today - $last_day;
$days = (int)($dif / $seconds_per_day);

--
Justin Garrett

"Yang" <jakry@bbcode.com.t­w> wrote in message
news:20010930192559­.12059.qmail@pb1.pai­r.com...
i want to check about how many day between the two time format
like
$last_day=time format;
$today=time();
$between_day=?????(­$today-$last_day);
echo $between_day is the between day...



Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Java Programming > how many day between the two time format 1 October 2001 05:14:12

see also:
User Groups
Runaway SSL httpd server processes
Problem building on Tru64 with 2.0.35…
пройди тесты:
see also:
Hi!
HI!
Hi Help

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .