TDateTime type conversion

This is a discussion on TDateTime type conversion within the PHP Language forums, part of the PHP Programming Forums category; Hello everybody, here is the question: I've got a date in TDateTime type (Delphi) and I want to convert ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-13-2007
adm
 
Posts: n/a
Default TDateTime type conversion

Hello everybody,
here is the question: I've got a date in TDateTime type (Delphi) and I
want to convert it in another format, for example yyyy-mm-dd hh:mm:ss.
Is there a function to do it with PHP?
And if it doesen't exist do you give me any suggestion?
Thank you very much
Andrea
Reply With Quote
  #2 (permalink)  
Old 12-13-2007
macca
 
Posts: n/a
Default Re: TDateTime type conversion

http://blog.malcom.pl/2007/07/23/con...nix-timestamp/

The function is not in php but I'm sure you can convert it.

Reply With Quote
  #3 (permalink)  
Old 12-13-2007
Captain Paralytic
 
Posts: n/a
Default Re: TDateTime type conversion

On 13 Dec, 12:06, macca <ptmcna...@googlemail.com> wrote:
> http://blog.malcom.pl/2007/07/23/con...nix-timestamp/
>
> The function is not in php but I'm sure you can convert it.


I found http://www.swissdelphicenter.ch/en/showcode.php?id=844
by searching for:
TDateTime conversion php

which whilst also not in php is a similar algorithm and easily
converted.

So my suggestion is to search on Google, find something similar and
rewrite it in php.
Reply With Quote
  #4 (permalink)  
Old 12-13-2007
adm
 
Posts: n/a
Default Re: TDateTime type conversion

Great!
Now I know the mathematical formula it's easy to write a my own
function in php.
Thank you very much!
Andrea

Reply With Quote
  #5 (permalink)  
Old 12-13-2007
Captain Paralytic
 
Posts: n/a
Default Re: TDateTime type conversion

On 13 Dec, 13:07, adm <andrea.demagist...@libero.it> wrote:
> Great!
> Now I know the mathematical formula it's easy to write a my own
> function in php.
> Thank you very much!
> Andrea


But why didn't you find these when you did your Google search for:

TDateTime conversion php

before you posted here asking us to do the search?
Reply With Quote
  #6 (permalink)  
Old 12-14-2007
adm
 
Posts: n/a
Default Re: TDateTime type conversion

My mistake was trying to search on google in my native language,
italian.
So I found nothing that can help me.

Excuse me for the time you lost...
and thank you again!
Andrea

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:14 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0