Bad Taste Forum Index Bad Taste
Annektoden Knoversation Anglizism und Asoziationen
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wie speichert man eine Uhrzeit in einer Datenbank
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bad Taste Forum Index -> Off Topic/Epic
View previous topic :: View next topic  
Author Message
FragCool
Low Spammer


Joined: 03 Apr 2007
Posts: 100003

PostPosted: 09.01.2008, 13:50    Post subject: Wie speichert man eine Uhrzeit in einer Datenbank Reply with quote

Ich ärger mich da mit einem Programm rum, das etwas unkonventionelle Wege geht.

Das Speichern einer Uhrzeit in einer Datenbank z.B.

sagen wir 17:18

Tja das könnte man in einem time Feld machen, oder in einem String z.B. "17:18" oder nur "1718"
aber nein die Haubentaucher speichern das in einem Number Feld als 1,718

Ahhhhhhhhhhhhhhhhhhhhhh

Sorry das musste sein
_________________
Einmal raiden ohne sich jeden Buff erstreiten zu müssen...
Back to top
View user's profile Send private message
yonk
ruf mich an ! Sven F. Lünen Tel :


Joined: 06 Jun 2006
Posts: 100075
Location: Lünen

PostPosted: 09.01.2008, 13:54    Post subject: Reply with quote

war das nur ne aussage oder wolls du ne antwort oder was is dein begehren in diesem thread?

das einzige was mit spontan eingefallen ist war
"du hast nen vollschatten"
aber sowas würd ich ja nie schreiben.
Back to top
View user's profile Send private message
palaror
Low Spammer


Joined: 07 Jan 2008
Posts: 100000
Location: Oberhausen

PostPosted: 09.01.2008, 14:00    Post subject: Reply with quote

junge was willst du denn genau machen?
gehts um einprogramm an dem du schreibst oder ein fertiges was du benutzen musst?
Back to top
View user's profile Send private message
dOc
Low Spammer


Joined: 31 Jul 2006
Posts: 100077
Location: Berlin

PostPosted: 09.01.2008, 14:01    Post subject: Reply with quote

mach doch ne neue spalte (als zeitstempelfeld) dazu, kopier die alten werte rein und nutze ab da das neue feld... ist jetzt nicht sooooooschwer... es sei denn, man ist n lowbob... hmmm... vllt... ach...
_________________
play hard - go pro!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
elvo
ist der einzige, der Ahnung hat


Joined: 28 May 2007
Posts: 100140
Location: Bottrop

PostPosted: 09.01.2008, 14:08    Post subject: Reply with quote

oder steig in dein auto brings auf 180 sachen und hau dann den rückwärtsgang rein
Back to top
View user's profile Send private message
Guest






PostPosted: 09.01.2008, 14:09    Post subject: Reply with quote

$new_time = 1,718 * 10;
$new_time_hour = substr($new_time,0,2);
$new_time_min = substr($new_time,2,2);

$new_time = $new_time_hour.":".$new_time_min;

Ich hab ne Oracle da speichern die das --> ''WED 9 JAN 2008"
Ich hab ne MSSQL da speicher die das --> "WED 2008-01-09"
Ich na ROXXOR MYsql die macht dat schön --> "2008-01-09"

aber da hilft dir :

SELECT CONVERT


Last edited by Guest on 09.01.2008, 14:13; edited 1 time in total
Back to top
Dea
Low Spammer


Joined: 30 Jul 2006
Posts: 100010

PostPosted: 09.01.2008, 14:12    Post subject: Reply with quote


_________________
Back to top
View user's profile Send private message
palaror
Low Spammer


Joined: 07 Jan 2008
Posts: 100000
Location: Oberhausen

PostPosted: 09.01.2008, 14:13    Post subject: Reply with quote

Oo
Back to top
View user's profile Send private message
yonk
ruf mich an ! Sven F. Lünen Tel :


Joined: 06 Jun 2006
Posts: 100075
Location: Lünen

PostPosted: 09.01.2008, 14:24    Post subject: Reply with quote

das bild is super !
Back to top
View user's profile Send private message
FragCool
Low Spammer


Joined: 03 Apr 2007
Posts: 100003

PostPosted: 09.01.2008, 14:27    Post subject: Reply with quote

.)Das war nur ein Heulthread
.)Meme versteht mich...
.)Dea das Bild ist genial Wink
.)Doc hat geniale Ideen
_________________
Einmal raiden ohne sich jeden Buff erstreiten zu müssen...
Back to top
View user's profile Send private message
yonk
ruf mich an ! Sven F. Lünen Tel :


Joined: 06 Jun 2006
Posts: 100075
Location: Lünen

PostPosted: 09.01.2008, 14:32    Post subject: Reply with quote

und du bis zu hohl um nen eimer wasser umzukippen?

lalalalalalalalala
Back to top
View user's profile Send private message
FragCool
Low Spammer


Joined: 03 Apr 2007
Posts: 100003

PostPosted: 09.01.2008, 14:37    Post subject: Reply with quote

yonk wrote:
und du bis zu hohl um nen eimer wasser umzukippen?

lalalalalalalalala


Ja nur handelt es sich um einen MultiMillionenEuro Zukauf Kübel

Wenn das so ein Selbstfrickel Kübel von www.sourceforge.net wäre, würde ich über die ganzen Wurmlocher ja hinwegsehen. Aber dieser Kübel war richtig teuer...
_________________
Einmal raiden ohne sich jeden Buff erstreiten zu müssen...
Back to top
View user's profile Send private message
Lar$
Low Spammer


Joined: 03 Aug 2007
Posts: 100000

PostPosted: 09.01.2008, 16:50    Post subject: Reply with quote

lol verwirrung Shocked
Back to top
View user's profile Send private message
FragCool
Low Spammer


Joined: 03 Apr 2007
Posts: 100003

PostPosted: 09.01.2008, 16:54    Post subject: Reply with quote

Lar$ wrote:
lol verwirrung Shocked


Das ist ein Spam Topic.
Mir war fad, ich war genervt, ich wollte spam...

Hat funktioniert
_________________
Einmal raiden ohne sich jeden Buff erstreiten zu müssen...
Back to top
View user's profile Send private message
Izhak
Low Spammer


Joined: 07 Jun 2007
Posts: 100004

PostPosted: 10.01.2008, 00:00    Post subject: Reply with quote

Is doch egal in welchem Format das gespeichert is...

Schlimmer is wenn leute anfangen uhrzeit + datum in anzahl der sekunden seit jahresbeginn zu speichern....

einfach auslesen und weiterverarbeiten
_________________

[23:25:28] (Riot|Sospita) morgen log ich ein und seh plötzlich aus wie izhak
Back to top
View user's profile Send private message
Guest






PostPosted: 10.01.2008, 06:29    Post subject: Reply with quote

das ist nen stamp und der ist unerlässlich Smile
Back to top
Raidrim
Low Spammer


Joined: 31 Jul 2006
Posts: 100000

PostPosted: 10.01.2008, 07:40    Post subject: Reply with quote

wenn dir wirklich so langweilig ist, setz dich doch hin, guck wann der datensatz geändert wurde und trag die zeit in deinem persönlichen wunschformat doch per hand ein!
_________________
Back to top
View user's profile Send private message
FragCool
Low Spammer


Joined: 03 Apr 2007
Posts: 100003

PostPosted: 10.01.2008, 09:24    Post subject: Reply with quote

Raidrim wrote:
wenn dir wirklich so langweilig ist, setz dich doch hin, guck wann der datensatz geändert wurde und trag die zeit in deinem persönlichen wunschformat doch per hand ein!


Äh ja ich fang an in einem Programm Daten zu ändern das Swaps, Caps, Swaptions, Fras usw. in Millionenhöhe verwaltet. Das von einem 3t Anbieter kommt und das sicher dann beim nächsten Update sicher lustig verhält. Bei phpBB würd ich das machen, da nicht Wink
_________________
Einmal raiden ohne sich jeden Buff erstreiten zu müssen...
Back to top
View user's profile Send private message
yonk
ruf mich an ! Sven F. Lünen Tel :


Joined: 06 Jun 2006
Posts: 100075
Location: Lünen

PostPosted: 10.01.2008, 09:28    Post subject: Reply with quote

ich bin der mit dem bahnhof!
Back to top
View user's profile Send private message
Guest






PostPosted: 10.01.2008, 10:11    Post subject: Reply with quote

Es fährt ein Zu g nach nirgendwo....
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bad Taste Forum Index -> Off Topic/Epic All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group