Powerlang Docs
  • Welcome!
  • Beginner's Guide
    • Syntax
    • Directives
    • Environment
    • Special types
    • Functions
    • Tables
    • Loops
    • Conditions
    • Events
    • Libraries
    • Comments and Flags
  • Creating a Game
    • Project Introduction: Potato Rush
    • Creating the main game loop
    • Creating potatoes
    • Keeping track of score
  • Libraries
    • Special Types
      • BrickColor
      • CFrame
      • Color3
      • Instance
      • NumberRange
      • UDim2
      • Vector2
      • Vector3
    • Services
      • DataStore
      • Debris
      • Mouse
      • Pathfinding
      • PhysicsService
      • Players
      • Ray
      • TweenService
    • compiler
    • math
    • os
    • string
    • table
    • retrostudio
  • Advanced Information
    • Instance Functions
    • Global Functions
    • Multithreading
    • Compiler Library
Powered by GitBook
On this page
  1. Libraries

os

The os library on RetroStudio is only able to provide time.

Function

Description

clock() -> number

Returns the CPU time used by the program in seconds since the program started. Outputs Answer (Number).

date(Time: string, Timezone: string) -> {}

Returns the formatted date based on a given time and timezone. Expects Time and Timezone as arguments and outputs DateTable.

time() -> number

Returns the current time in seconds since the Unix epoch (January 1, 1970). Outputs Answer (Number).

PreviousmathNextstring

Last updated 7 months ago