Jump to content

os.date ?


Recommended Posts

Posted

السلام عليكم

os.date() 

فنكشن بلغة ال Lua

وضيفتها تجيب التاريخ الي في النظام صح ؟

اكدر استخدمها ب Mta ?

1433031928821.jpg

Skype : Mouamle1

Telegram : @Mouamle

Posted

use

getRealTime ( ) 

Example

function Date ( ) 
    local RealTime = getRealTime ( ) 
    return 
    string.format ( "%04d/%02d/%02d", RealTime.year + 1900, RealTime.month + 1, RealTime.monthday ), 
end 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted
use
getRealTime ( ) 

Example

function Date ( ) 
    local RealTime = getRealTime ( ) 
    return 
    string.format ( "%04d/%02d/%02d", RealTime.year + 1900, RealTime.month + 1, RealTime.monthday ), 
end 

Thank you :)

اذا اريدها تجيب الوقت

ثانية . دقيقة . ساعة

S, M, H

?

1433031928821.jpg

Skype : Mouamle1

Telegram : @Mouamle

Posted

اذا اريدها تجيب الوقت

ثانية . دقيقة . ساعة

S, M, H

?

You can use sth like this

string.format ( "%02d:%02d:%02d", RealTime.hour, RealTime.minute, RealTime.second ) 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted

اذا اريدها تجيب الوقت

ثانية . دقيقة . ساعة

S, M, H

?

You can use sth like this

string.format ( "%02d:%02d:%02d", RealTime.hour, RealTime.minute, RealTime.second ) 

Thank you again :D

1433031928821.jpg

Skype : Mouamle1

Telegram : @Mouamle

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...