Volsatik

Untitled

Oct 29th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. obj.tmpfs = component.proxy(computer.tmpAddress())
  2. function obj:getRealTime(raw)
  3. local handle = self.tmpfs.open("/time", "w")
  4. self.tmpfs.write(handle, "time")
  5. self.tmpfs.close(handle)
  6. return raw and self.tmpfs.lastModified("/time") / 1000 or
  7. os.date("%Y-%m-%d %H:%M:%S", self.tmpfs.lastModified("/time") / 1000) -- last arg is timestamp
  8. end
  9.  
Advertisement
Add Comment
Please, Sign In to add comment