Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    August 2015
    Posts
    22

    How to reformat date?

    Hi. How to reformat date?
    I would like to get the date of joining in the following: d-m-Y H:i

    Code:
    void ts3plugin_infoData(uint64 serverConnectionHandlerID, uint64 id, enum PluginItemType type, char** data) {
    
    	if (type == PLUGIN_CLIENT)
    	{
    		char* created;
    
    		if (ts3Functions.getClientVariableAsString(serverConnectionHandlerID, (anyID)id, CLIENT_CREATED, &created) != ERROR_ok) {
    			printf("Error getting client created\n");
    			return;
    		}
    
    		*data = (char*)malloc(INFODATA_BUFSIZE * sizeof(char)); 
    		snprintf(*data, INFODATA_BUFSIZE, "Join: %s", created); 
    		ts3Functions.freeMemory(created);
    	}
    }

  2. #2
    Join Date
    September 2012
    Posts
    6,079
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: April 24th, 2015, 07:19 AM
  2. How Do I Get Up To Date?
    By Plainsman in forum Client Support
    Replies: 1
    Last Post: January 2nd, 2014, 03:01 AM
  3. [Resolved] TS3 SDK out of date?
    By lukegb in forum General Questions
    Replies: 2
    Last Post: May 29th, 2013, 01:12 AM
  4. How do I up-date TS 3?
    By haas_style in forum General Questions
    Replies: 1
    Last Post: January 21st, 2010, 07:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •