• Post Reply Bookmark Topic Watch Topic
  • New Topic

hour  RSS feed

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i get the current hour?
like right now is 9:15am, it return 9
if 10:30pm, it return 22
Thanks!
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the ways

[ July 29, 2003: Message edited by: Michael Dunn ]
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
See this solves your purpose.

Cheers Gaurav
[ July 29, 2003: Message edited by: Gaurav Mac Mathur ]
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks mike, actually i would like to return true when the current time is within the time range says 615am to 1220pm. (minutes maybe involve) please let me know whether my approach is correct.
Sorry for the confusion.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's probably easier ways, but this seems to work OK
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Mike,
THANK YOU SO MUCH!
that's exactly what i need.
appreciated that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!