Thank you![]()
Thank you![]()
ezStats.org
Clanleaderboard für Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
Serverviewer & RCON
Hi 1April!2012-02-19
- Added Ranking for weapons with over 100 kills.
Yesterday you've added rankings for weapons. Is it possible that you add those rankings to the API? I would really appreciate it.
Due to the upcoming "Servers"-feature of bf3stats.com: If you've established this, do we have a "last seen online"-value in the API as we had in BFBC2?
Regards, ezzemm
ezStats.org
Clanleaderboard für Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
Serverviewer & RCON
If you set ranking,weapons,weaponsRanking to true then you get c and r for every weapon:
r: rank position
c: count of ranked weapons
ezStats.org
Clanleaderboard für Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
Serverviewer & RCON
ezStats.org
Clanleaderboard für Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
Serverviewer & RCON
@ezzemm: I check it, and you seem to do everything correct.
I did notice however that it will only return the r/c/v values when the item is actually listed at the leaderboards. However this is not the case for equipment. I tested it with my own stats, since I'm in the top 34% with claymore kills.
Minor bug, easy to fix![]()
Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007
Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects
ezStats.org
Clanleaderboard für Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
Serverviewer & RCON
ezStats.org
Clanleaderboard für Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
Serverviewer & RCON
Are there anyone that can tell me how to get a date out of the long date_update/date_insert informations?
I can get the time from the values but not the date.
Hi Rasch,
if you are using PHP, you can use the date() function.
Example:
Time onlyOutput: 07:52:20PHP Code:date("H:i:s", $player['date_update'])
Date onlyOutput: 24 02 2012PHP Code:date("d F Y", $player['date_update'])
Time/DateOutput: 24 02 2012 - 07:52:20PHP Code:date("d F Y - H:i:s", $player['date_update'])
You do the same for date_insert.
Just like HigH_HawK said; however, in Javascript you need to do a little magic:
Code:var dat = new Data( (p.date_insert * 1000) ); var nice_date_insert = dat.getMonth() + '/' + dat.getdate() + '/' + dat.getFullYear() + ' ' + dat.getHour() + ':' + dat.getMinutes() + ':' + dat.getSeconds(); // nice_date_insert = '21/31/2012 12:34:56'
Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007
Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects
Sorry, I forgot to state that "minor detail". I am working in .NET and C#.
I have tried to convert the number given in the json reply to a new DateTime() but that does not yield the correct date.
Try this:
Code:public static DateTime UnixTimeStampToDateTime( double unixTimeStamp ) { // Unix timestamp is seconds past epoch System.DateTime dtDateTime = new DateTime(1970,1,1,0,0,0,0); dtDateTime = dtDateTime.AddSeconds( unixTimeStamp ).ToLocalTime(); return dtDateTime; }
Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007
Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects
Thank you Grezvany13. That was exactly what I was looking for ... I was not aware that Unix had a default time of January 1. 1970 :-)
Again, thank you for the input!
Bookmarks