Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Time and Date Function

Time and Date Function

Posts 1–15 of 30 · Page 1 of 2
God601
God601
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.

#1 · edited 15y ago · 15y ago
o-o
o-o
Nice, thanks dude
#2 · 15y ago
flameswor10
flameswor10
Nice work dude..
#3 · 15y ago
God601
God601
Quote Originally Posted by o-o View Post
Nice, thanks dude
Your welcome
#4 · 15y ago
-E
-ExileD-
Thanks, even though i already have this func another way.
This is a great contribution.
#5 · 15y ago
wassup40
wassup40
Cool but i dont have a menu to use it on so nvm.
#6 · 15y ago
God601
God601
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
#7 · 15y ago
Mr.Magicman
Mr.Magicman
Kinda looks like Longvitys one
#8 · 15y ago
ac1d_buRn
ac1d_buRn
Whoa. YOu do it a waste of time way, Thats for sure xD
Mine is a simple PrintText(blah,cTime);
#9 · 15y ago
God601
God601
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
#10 · 15y ago
wassup40
wassup40
Off topic but God601 can ya fix my code pls.
#11 · 15y ago
-E
-ExileD-
Quote Originally Posted by God601 View Post
You use C00lGuys source rite
Correct.

/ts
#12 · 15y ago
ST
Stephen
You made this harder than it was
/fp

Good Job anyway /
#13 · 15y ago
whatup777
whatup777
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. /
#14 · 15y ago
topblast
topblast
WOW U CAN TELL TIME 0.0
#15 · 15y ago
Posts 1–15 of 30 · Page 1 of 2

Post a Reply

Similar Threads

  • [C++ SOURCE]Simple D3D Show Time and DateBy mastermods in Combat Arms Hack Coding / Programming / Source Code
    12Last post 16y ago
  • [Help]Time and DateBy ◘◘◘◘◘◘ in Combat Arms Coding Help & Discussion
    5Last post 15y ago
  • [Help] Get Time and DateBy Web-Designer in Web Languages
    2Last post 15y ago
  • Time, date and FPS functions.By flameswor10 in Combat Arms Hack Coding / Programming / Source Code
    22Last post 15y ago
  • [RELEASE] Time & Date FunctionBy Fabolous in Combat Arms Hack Coding / Programming / Source Code
    26Last post 16y ago

Tags for this Thread

None