Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: format of addtime and logintime in database

  1. #1

    Default format of addtime and logintime in database

    Hello to all!

    I have a doubt:

    In that format are stored the dates in mysql database for the singnup table in addtime and logintime fields?

    Example:
    addtime: 1213704417
    logintime: 1226199785

    How I can convert this in a normal format for see this in a page?

  2. #2
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: format of addtime and logintime in database

    They are in Epoch time. You can use an Epoch converter (search google) to convert them into a readable date and time. Or, are you looking to build a page to display them?
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  3. #3
    Join Date
    Mar 2008
    Location
    Canada Eh?
    Posts
    37

    Default Re: format of addtime and logintime in database

    Quote Originally Posted by pocholo
    Example:
    addtime: 1213704417
    logintime: 1226199785
    addtime: 1213704417 translates to Tuesday, June 17th 2008, 12:06:57 (GMT)
    logintime: 1226199785 translates to Sunday, November 9th 2008, 3:03:05 (GMT)


    This page does it for you:
    http://www.4webhelp.net/us/timestamp.php

    I find I have to use it all the time so that I can publish archived videos on the front page.
    It's a pain in the ass, and I hope it's fixed in the next version
    http://www.asiancumtube.com Send Traffic, Make $$$
    Check the webmasters link at the bottom of the site

  4. #4
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: format of addtime and logintime in database

    From a programming standpoint, you would want it to be in Epoch as it is now. Are you manually publishing your archived videos to your main page or are you trying to do it via an automated mean? PHP can convert the time for you on the fly if you are wanting to do it via an automated process.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  5. #5

    Default Re: format of addtime and logintime in database

    Thanks for the information, but what is the php function to capture the Epoch time at logintime field, and convert this to an normal date?

    And how I can integrate this into a Vshare tpl?

  6. #6
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: format of addtime and logintime in database

    It would be easier if you tell me what you are trying to accomplish as how you want the date to look (for example, MM-DD-YYY, etc). This way, I could give you a template code that you could just insert into whatever page.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  7. #7

    Default Re: format of addtime and logintime in database

    Well, I referred to the same format that this is in the user profile.

    Example:
    last login: 28 minutes ago
    last login: 1 day ago

  8. #8
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: format of addtime and logintime in database

    Ok. I still need to know how you are planning to use it. I can give you the code to convert the date, but it will not work unless I know how you wanting to get the date into it.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  9. #9

    Default Re: format of addtime and logintime in database

    Hi, Bplex!

    I have a list of my users (you know this :wink: ), and I want his last login date in the mentioned format.

    Nobody knows how to convert epoch and show this in Vshare template?

  10. #10

    Default Re: format of addtime and logintime in database

    Nobody can help me with this topic?

Page 1 of 2 12 LastLast

Similar Threads

  1. Problem with .mov format. Please help me.
    By videlov in forum Bug Reports
    Replies: 5
    Last Post: 06-06-2008, 10:51 AM
  2. Change date format?
    By Misinformed in forum General Discussions
    Replies: 1
    Last Post: 02-02-2008, 03:37 PM
  3. Page format
    By datasmith in forum Installation Support
    Replies: 3
    Last Post: 01-07-2008, 04:30 AM
  4. 16:9 format
    By Blizzmo in forum Feature Requests
    Replies: 6
    Last Post: 05-24-2007, 06:50 PM
  5. video format
    By bman in forum Fixed Bugs
    Replies: 2
    Last Post: 05-23-2007, 11:27 PM

Bookmarks

Posting Permissions

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