|
|
#1 |
|
Banned
![]() Join Date: Oct 2010
Location: Siиαloα
Posts: 1,483
Reputation: 0
|
strftime Well, I'm starting in c + + plugin that I made this little function based on C + + strftime Why is it called strftime? This means that you give the format you want at the time, this has a similar use ah pawn Code:
What makes this plugin is to get the server time in different ways, 12-hour format | am, pm | itself in many ways as you want to get it. EDIT: If the especifier does not exist crash the server!! Examples: Example #1 pawn Code:
Code:
10:05 PM pawn Code:
Code:
10:05:43 PM pawn Code:
Code:
PM Especifiers Code:
%a - Abbreviated weekday name %A - Full weekday name %b - Abbreviated month name %B - Full month name %c - Date and time representation %d - Day of the month (01-31) %H - Hour in 24h format (00-23) %I - Hour in 12h format (01-12) %j - Day of the year (001-366) %m - Month as a decimal number (01-12) %M - Minute (00-59) %p - AM or PM designation %S - Second (00-61) %U - Week number with the first Sunday as the first day of week one (00-53) %w - Weekday as a decimal number with Sunday as 0 (0-6) %W - Week number with the first Monday as the first day of week one (00-53) %x - Date representation %X - Time representation %y - Year, last two digits (00-99) %Y - Year %Z - Timezone name or abbreviation %% - A % sign Thanks to CyNiC for compile the plugin to linux version Credits: Josta ( Create the plugin) Credits: the_chaoz ( helpme whit c++) Note: Sorry for my bad English, use a translator Last edited by Jovanny; 09/10/2011 at 07:03 PM. Reason: Post updated! |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2010
Location: Black Asylum
Posts: 2,447
Reputation: 222
|
Nice, i'd like to test but can anyone put up a linux link?
|
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2009
Location: Pakistan
Posts: 1,338
Reputation: 34
|
Nice work
|
|
|
|
|
|
#4 |
|
Banned
![]() Join Date: Oct 2010
Location: Siиαloα
Posts: 1,483
Reputation: 0
|
|
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
Very nice!
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Sep 2009
Location: Australia
Posts: 575
Reputation: 38
|
Nice work man, Really nice!
|
|
|
|
|
|
#7 |
|
Banned
![]() Join Date: Oct 2010
Location: Siиαloα
Posts: 1,483
Reputation: 0
|
|
|
|
|
|
|
#8 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Posts: 5,617
Reputation: 380
|
It's a nice piece of plugin. And about that problem that without a specifier it will crash.
I bet there is a way to stop that. |
|
|
|
|
|
#9 |
|
Big Clucker
![]() ![]() Join Date: Nov 2009
Posts: 169
Reputation: 7
|
I also made a strftime plugin, wanted to release it the other day, but seems kinda useless now, that specifier blocking was an easy check for me.
|
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2010
Location: Republic of Moldova
Posts: 1,159
Reputation: 50
|
Good job.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Plugin] JP - strftime | Jovanny | Lanzamientos/Releases | 18 | 12/10/2011 11:22 AM |