vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Joindate format in MySql of vBulletin (https://vborg.vbsupport.ru/showthread.php?t=229901)

Forero 12-10-2009 10:57 AM

Joindate format in MySql of vBulletin
 
Could someone please tell me how to read this data?

I need to know the registration date (time-stamp) of all the users in my forum.

I downloaded the user table as a csv file, but I can not read the joindate column.

The column looks like this (with many more records):

joindate
1195762080
1195942320
1197122400
1197121080
1197312817
1197313767
1197335040
1197340817
1197370440
1197378719

Thanks in advance for your help.

kh99 12-10-2009 11:23 AM

They are in "unix time" format (number of seconds since Jan 1 1970). If you google "convert unix time" you'll find a bunch of info on converting it.

Forero 12-10-2009 11:37 AM

That's great.

I googled it and found the converter in two seconds flat.

Thank you very much kh99

kh99 12-10-2009 12:38 PM

No problem, but I probably should have mentioned: I'm assuming you have your csv file and now you're working on processing it externally (not in vbulletin or php), because there is a php function to convert it to a text representation and a vBulletin function to do it using the date format options. So if you're working in vbulletin code (or really, probably any programming language), there's no reason to figure out your own conversion.


All times are GMT. The time now is 07:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01253 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete