Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    God601's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In The End Of The Time
    Posts
    554
    Reputation
    10
    Thanks
    362
    My Mood
    Angelic

    Time and Date Function

    This is completely my source so if you use it give credits.

    [php]#include <time.h>


    struct tm * current_tm;
    time_t current_time;time (&current_time);
    current_tm = localtime (&current_time);
    char *month []={"January","February","March","April","Mai","June ","July","August","September","October","November" ,"December"};
    char *Day []={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
    char *Hour []={"12","1","2","3","4","5","6","7","8","9","10","1 1","12","1","2","3","4","5","6","7","8","9","10"," 11"};
    char *Sec []={"00","01","02","03","04","05","06","07","08","09 ","10","11","12","13","14","15","16","17","18","19 ","20","21","22","23","24","25","26","27","28","29 ","30","31","32","33","34","35","36","37","38","39 ","40","41","42","43","44","45","46","47","48","49 ","50","51","52","53","54","55","56","57","58","59 "};
    char *Min []={"00","01","02","03","04","05","06","07","08","09 ","10","11","12","13","14","15","16","17","18","19 ","20","21","22","23","24","25","26","27","28","29 ","30","31","32","33","34","35","36","37","38","39 ","40","41","42","43","44","45","46","47","48","49 ","50","51","52","53","54","55","56","57","58","59 "};
    char *logbuf = new char[ 256 ];
    sprintf( logbuf, "%s %s %02dth %d || %s:%s:%s",Day[current_tm->tm_wday], month[current_tm->tm_mon], current_tm->tm_mday, current_tm->tm_year+1900, Hour[current_tm->tm_hour], Min[current_tm->tm_min], Sec[current_tm->tm_sec]);
    [/php]

    And you can say this is kind of noob proof lol

    And this is what it looks like.

    Last edited by God601; 09-26-2010 at 03:59 AM.

    Starting my own Web hosting service
    Finaly completed.

    Progress for Exchange Server : 100%


  2. The Following 6 Users Say Thank You to God601 For This Useful Post:

    -ExileD- (09-26-2010),elmobob (10-01-2010),flameswor10 (09-26-2010),o-o (09-26-2010),tahha (10-01-2010),Timboy67678 (09-28-2010)

  3. #2
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    Nice, thanks dude
    [IMG]https://i423.photobucke*****m/albums/pp312/LizMLsinatra/hh-1.png[/IMG]
    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



  4. #3
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,409
    My Mood
    In Love
    Nice work dude..
    No I do not make game hacks anymore, please stop asking.

  5. #4
    God601's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In The End Of The Time
    Posts
    554
    Reputation
    10
    Thanks
    362
    My Mood
    Angelic
    Quote Originally Posted by o-o View Post
    Nice, thanks dude
    Your welcome

    Starting my own Web hosting service
    Finaly completed.

    Progress for Exchange Server : 100%


  6. #5
    -ExileD-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    https://mpgh.net Posts: 25,987
    Posts
    552
    Reputation
    32
    Thanks
    795
    My Mood
    Lurking
    Thanks, even though i already have this func another way.
    This is a great contribution.

  7. #6
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    790
    My Mood
    Lurking
    Cool but i dont have a menu to use it on so nvm.

  8. #7
    God601's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In The End Of The Time
    Posts
    554
    Reputation
    10
    Thanks
    362
    My Mood
    Angelic
    Quote Originally Posted by -ExileD- View Post
    Thanks, even though i already have this func another way.
    This is a great contribution.
    You use C00lGuys source rite

    Starting my own Web hosting service
    Finaly completed.

    Progress for Exchange Server : 100%


  9. #8
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Kinda looks like Longvitys one

  10. #9
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Whoa. YOu do it a waste of time way, Thats for sure xD
    Mine is a simple PrintText(blah,cTime);

  11. #10
    God601's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    In The End Of The Time
    Posts
    554
    Reputation
    10
    Thanks
    362
    My Mood
    Angelic
    Quote Originally Posted by ac1d_buRn View Post
    Whoa. YOu do it a waste of time way, Thats for sure xD
    Mine is a simple PrintText(blah,cTime);
    yea but this way you can draw the characters any way you want too

    Quote Originally Posted by Mr.Magicman View Post
    Kinda looks like Longvitys one
    Never seen his but i coded this all from scratch yesterday

    Starting my own Web hosting service
    Finaly completed.

    Progress for Exchange Server : 100%


  12. #11
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    790
    My Mood
    Lurking
    Off topic but God601 can ya fix my code pls.

  13. #12
    -ExileD-'s Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    https://mpgh.net Posts: 25,987
    Posts
    552
    Reputation
    32
    Thanks
    795
    My Mood
    Lurking
    Quote Originally Posted by God601 View Post
    You use C00lGuys source rite
    Correct.

    /ts

  14. #13
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    You made this harder than it was
    /fp

    Good Job anyway /

  15. The Following User Says Thank You to Stephen For This Useful Post:

    Gordon` (10-02-2010)

  16. #14
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Going over a quick glance of the code isnt it going to print "th" after everything.


    So it would be September 1th, 2010 instead of Spetember 1"st", 2010. /
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  17. #15
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    WOW U CAN TELL TIME 0.0
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  18. The Following User Says Thank You to topblast For This Useful Post:

    flameswor10 (09-28-2010)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Help] Get Time and Date
    By Web-Designer in forum Web Languages
    Replies: 2
    Last Post: 01-05-2011, 10:22 AM
  2. [Release] Time, date and FPS functions.
    By flameswor10 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 22
    Last Post: 12-19-2010, 10:53 AM
  3. [Help]Time and Date
    By ◘◘◘◘◘◘ in forum Combat Arms Coding Help & Discussion
    Replies: 5
    Last Post: 10-17-2010, 06:50 PM
  4. [C++ SOURCE]Simple D3D Show Time and Date
    By mastermods in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 12
    Last Post: 08-11-2010, 08:50 AM
  5. [RELEASE] Time & Date Function
    By Fabolous in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 26
    Last Post: 07-13-2010, 02:55 AM