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 › [RELEASE] Time & Date Function

[RELEASE] Time & Date Function

Posts 1–15 of 27 · Page 1 of 2
FA
Fabolous
[RELEASE] Time & Date Function
Hi All! I am new to MPGH. I'll throw u guys some functions

Includes:
[php]#include <time.h>[/php]

Time:
[php]/*****************The Time*******************/
char *TheTime()
{
char *logbuf = new char[ 256 ];
struct tm *newtime;
char am_pm[] = "AM";
time_t long_time;
time( &long_time );
newtime = localtime( &long_time );
if( newtime->tm_hour > 12 )
strcpy( am_pm, "PM" );
if( newtime->tm_hour > 12 )
newtime->tm_hour -= 12;
if( newtime->tm_hour == 0 )
newtime->tm_hour = 12;
sprintf( logbuf, "[ %02d:%02d:%02d %s ]", newtime->tm_hour, newtime->tm_min, newtime->tm_sec, am_pm );
return logbuf;
}
/*****************The Time*******************/[/php]

Date:
[php]/*****************The Date*******************/
char *TheDate()
{
time_t curtime = time(0);
tm now=*localtime(&curtime);
char dest[BUFSIZ]={0};
const char format[]="[ %d:%b:%Y ]";
if (strftime(dest, sizeof(dest)-1, format, &now)>0)
return dest;
}

/*****************The Date*******************/[/php]


If you have any C++ Common sense, you'd know how to draw it I am not out to post "Copy and Paste" code. Figure it out yourself


IF YOU ARE GOING TO USE IN YOUR HACK, REMEMBER TO GIVE ME CREDITS

Remember to Thank Me!
#1 · edited 16y ago · 16y ago
zmansquared
zmansquared
It works. i just added it and compiled and got it to work.

thanks bro
#2 · 16y ago
Mordecai
Mordecai
Nice Release
This Works.
#3 · edited 16y ago · 16y ago
FA
Fabolous
Thank you Guys!
#4 · 16y ago
whatup777
whatup777
Nice Job Unknown and welcome.
#5 · 16y ago
FA
Fabolous
Don't say it, press it!
#6 · 16y ago
zmansquared
zmansquared
i pressed it!!!!!!
#7 · 16y ago
CR
Crash
This also works :
Code:
SYSTEMTIME st;

GetSystemTime(&st);

st.w(insert time measurement here)
For example :

Code:
char timebuffer[512];

sprintf_s(timebuffer, 512, "[ %d / %d / %d ] - [ %d : %d : %d ]", (int)st.wMonth, (int)st.wDay, (int)st.wYear, (int)st.wHour - 4, (int)st.wMinute, (int)st.wSecond);

DrawString(10, 10, timebuffer, D3DCOLOR_XRGB(255, 0, 0));
Right now it would output this :
[ 07 / 12 / 2010 ] - [ 3 : 22 : 18 ]

At least where I live.
#8 · 16y ago
zmansquared
zmansquared
they both work. seals is a alittle easier for a noob to understand
#9 · 16y ago
FA
Fabolous
It works either way, thats just my method.
#10 · 16y ago
whatup777
whatup777
Quote Originally Posted by Sealionone View Post
This also works :
Code:
SYSTEMTIME st;

GetSystemTime(&st);

st.w(insert time measurement here)
For example :

Code:
char timebuffer[512];

sprintf_s(timebuffer, 512, "[ %d / %d / %d ] - [ %d : %d : %d ]", (int)st.wMonth, (int)st.wDay, (int)st.wYear, (int)st.wHour - 4, (int)st.wMinute, (int)st.wSecond);

DrawString(10, 10, timebuffer, D3DCOLOR_XRGB(255, 0, 0));
Right now it would output this :
[ 07 / 12 / 2010 ] - [ 3 : 22 : 18 ]

At least where I live.
Shouldn't you use GetLocalTime instead?
#11 · 16y ago
CR
Crash
Quote Originally Posted by UnknownCoder View Post
It works either way, thats just my method.
If you wouldn't mind putting it up there with yours that would be nice.

@whatup777 : If they don't set their computer's clock to the right time they're retarded.
#12 · 16y ago
~S
~Shadow
can you put one for C# and VB? i am going to try something with this later
#13 · 16y ago
Mordecai
Mordecai
Lol. You can do that yourself. Copy the code. Like you were going to anyways. Except instead of copying and pasting into C++. Go to google, and find a C++/C# Code Converter, and place it in there to convert it into a C# Code.
#14 · 16y ago
zmansquared
zmansquared
those converters are so expensive though
#15 · 16y ago
Posts 1–15 of 27 · Page 1 of 2

Post a Reply

Similar Threads

  • Time and Date FunctionBy God601 in Combat Arms Hack Coding / Programming / Source Code
    29Last post 15y ago
  • Dave's Release Day or Date?By slayerboyxx in CrossFire Hacks & Cheats
    22Last post 16y ago
  • [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
  • Release TimeBy Dave84311 in WarRock - International Hacks
    22Last post 19y ago

Tags for this Thread

None