Pro Playerr
Pro Playerr

Reputation: 15

Robotframework DateTime Library

Can i install robotframework DateTime Library using robotframework v2.8.3? If so can anyone give me a link for it. Thanks!

I tried using the Get Time to do it but the use is not sufficient for me.

Upvotes: 0

Views: 2854

Answers (2)

Huseyin solmaz
Huseyin solmaz

Reputation: 1

Try This

*** Settings ***
Library    DateTime

*** Test Cases ***
    ${currentTime}=  Get Time
    Log To Console  ${currentTime}

Upvotes: 0

Würgspaß
Würgspaß

Reputation: 4820

There is no need to install the library as it is one of the Standard Libraries. In order to use it, you can either specify it in your settings like this:

*** Settings ***
Library    DateTime

or import it in your test case using:

*** Test Cases ***
Example
    Import Library    DateTime

For clarity I would prefer the first variant. See 2.8.3 documentation

Upvotes: 4

Related Questions