Hi All,.
I am having a problem i need to check a validation the particular game is
locked after specified time for that i am getting the time as string from
application web page like my string contain s your game will lock at 10:30
PM IST now from that string i will extract out that time in a
Hello,
The Contents folder is actually a special, hidden container for
application-specific resources. Apple formally calls it an application
bundle or package. If you right-click on any application, choose
Show Package Contents to see the Contents folder in the Finder.
Firefox should be in your
Hello,
I think this should work for you, although I don't think this is
specific to Watir:
require 'time'
a = Time.now.strftime(%I:%M %p)
puts a # returns '5:27 PM'
x = Time.parse(10:30 PM).strftime(%I:%M %p)
puts x # returns '10:30 PM'
puts a x # returns 'true'
On Apr 10, 10:47 am, Rajiv
Thanks a lot George,
Sorry, ya it's not specific to watir but in automation with watir need some
work on ruby also thats why i asked.
one thing more that would really helpful for me how to less 5 minute if
need to minus 5 minute
On Sun, Apr 11, 2010 at 5:58 AM, George george.sand...@gmail.com
Hi George ,
its not work when case AM another and another is PM
require 'time'
d = Picks for this day lock at 01:00 PM ET
v =
Time.parse((d.slice(/[0-9]{1,2}:[0-9]{1,2}.*(AM|PM)/i)).strip).strftime(%I:%M
%p)
d = Picks for this day lock at 09:24 AM ET
b=
i think problem with comparison it actually comparing betwwen string not in
time i check with this
puts b.class # returns string
puts v.class # returns string
so now i change this string to time object but i do not no how to do this
please help on this
On Sat, Apr 10, 2010 at 11:56 PM, Rajiv