McGod Posted May 6, 2008 Share Posted May 6, 2008 (edited) I much liked PHP's date function so I decided to make it for Autoit.;============================================================== ;Function Name: Date($Format, [$Timestamp=0]) ;Description: Parses your format and returns a date ;Parameters: $Format - A string you want formatted ; $Timestamp - A value from _NowCalc () ; Example: 2008/05/05 09:53:53 ;Return Values: Returns a formatted string ;Reference: This is a replica of PHP date (); function ; Use http://ca3.php.net/date for formatted ;==============================================================Download:Date.au3Example:Date('F j, Y, g:i a') // March 10, 2001, 5:16 pmReference:http://ca3.php.net/dateSome formats I didn't include due to the fact the information isn't enough.B - u - e - I - O - P - T - Z - c - r - U Edited May 6, 2008 by McGod [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
weaponx Posted May 6, 2008 Share Posted May 6, 2008 Just a tip when creating UDF's. Its bad practice for your functions to rely upon other UDF's. This one relies upon both Array.au3 and Date.au3. Link to comment Share on other sites More sharing options...
Robjong Posted May 17, 2008 Share Posted May 17, 2008 (edited) Nice, I made a simular function but with less options so i'll be using yours from now on. great job and thanks for sharing Edited May 17, 2008 by Robjong Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now