Finding out if a X Time Zone is in midnight

11 views
Skip to first unread message

Saurav Chakraborty

unread,
Mar 24, 2014, 12:20:17 AM3/24/14
to rubyonra...@googlegroups.com
Hello Guys,

I am working on scheduler module for which I want to know, if any X time
zone is in mid night now ?

Is there any library/gem for this purpose ? or if not what would be a
good logic to know this ?


Thanks,
SC

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Mar 24, 2014, 4:34:28 AM3/24/14
to rubyonra...@googlegroups.com
On 24 March 2014 04:20, Saurav Chakraborty <li...@ruby-forum.com> wrote:
> Hello Guys,
>
> I am working on scheduler module for which I want to know, if any X time
> zone is in mid night now ?

I, for one, do not understand your question. Can you clarify please.

Colin

Abdulsattar Mohammed

unread,
Mar 24, 2014, 5:05:51 AM3/24/14
to rubyonra...@googlegroups.com
It'll be the UTC  - (current time in UTC). For example, if the current time is 8:00 AM UTC, then the UTC -8:00 will be the timezone that will be midnight at that instant.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvJvJ_OzD4Exv2jpE3vHLH5yeLrhPX4Vy6-rKniZ70aoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Abdulsattar Mohammed
Reply all
Reply to author
Forward
0 new messages