[Wtr-general] how to make Watir output the current system datethrough a command
Prema Arya
prema.arya at gmail.com
Mon Jan 29 07:46:36 EST 2007
You can refer this for more date-time formats:
http://www.rubycentral.com/book/ref_c_time.html#Time.strftime
Prema
On 1/29/07, Walter Kruse <WKruse at multichoice.co.za> wrote:
>
> Hi Vijay
> This is a Ruby method, not specific to Watir:
>
> Time.now.strftime("%d-%b-%Y")
>
>
> -----Original Message-----
> From: wtr-general-bounces at rubyforge.org
> [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of vijay
> Sent: 29 January 2007 01:51 PM
> To: wtr-general at rubyforge.org
> Subject: [Wtr-general] how to make Watir output the current system
> datethrough a command
>
> Hello people,
>
> I do not know what command to use to make Watir output the current
> system date and to convert it into the desired format, dd-mon-yyyy
> (22-Jan-2007). I want the current system date inorder to check whether
> a particular field present in the application has the currrent date or
> not. If anybody could help me, I would be thankful.
>
> Thanks, in Advance
> Vijay
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=6308&messageID=17750#17750
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
> **************************************************************************************************************************
> Everything in this e-mail and attachments relating to the official
> business of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
> of the individual and should not automatically
> be ascribed to the company. If you are not the intended recipient, you
> may not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
> notify the sender immediately by email, facsimile
> or telephone and destroy the original message.
>
> **************************************************************************************************************************
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
--
Prema Arya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070129/c306188b/attachment.html
More information about the Wtr-general
mailing list