Solved Can i get UNIX time Python?

Discussion in 'Rust Development' started by Xephiro, Feb 3, 2015.

  1. Hi
    I'm trying to get the unix timestamp in my plugin, but i cant it because in python i can use "import time" but no execute the time.time(), the server say:

    [Error] TestPlugin: MissingMemberException while calling OnServerInitialized: 'NoneType' object has no attribute 'time' ....

    Any other way? or if it's possible with LUA would be fine for me


    I found a solution :D

    The function GetUnixTimestamp() in Time class of Oxide Core Libraries

    LUA:
    Code:
    time.GetUnixTimestamp()
    This return the unix timestamp.
     
    Last edited by a moderator: Feb 3, 2015