Calcular Diferença De Horas E Minutos
#1
Posted 09/06/2006, 16:59
Estou com um baita problema para resolver um sistema, preciso calcular o tempo decorrido entre duas datas em horas e minutos.
Exemplo
Data 1 = 10/06/2006 10:00
Data 2 = 11/06/2006 11:32
Tempo = 25:32
Já realizei a busca mas as respostas que tive foram apenas por horas e não incluindo os minutos, ou dias, mas preciso da diferença no molde hh:mm, pois gero alguns cálculos com este sistema.
Se alguém puder me dar um help eu agradeço...
Atenciosamente
Cleiton Fermino
#2
Posted 09/06/2006, 18:23
URL: www.batepapobrasil.com
----------------------------
Site desenvolvidos
URL: VitrineABC :: Alugue Litoral :: OrtodontiaLago
#3
Posted 12/06/2006, 10:48
Valeu mas os exemplos postados no site do PHP não me ajudaram..
Não consegui utilizar os mesmos para o meu problema...
Abraços
Cleiton
#4
Posted 12/06/2006, 11:57
<?php $data1 = '2006-07-22 12:27:00'; $data2 = '2006-07-30 18:00:00'; $unix_data1 = strtotime($data1); $unix_data2 = strtotime($data2); $nHoras = ($unix_data2 - $unix_data1) / 3600; $nMinutos = (($unix_data2 - $unix_data1) % 3600) / 60; printf('%02d:%02d', $nHoras, $nMinutos); ?>
Nota: A data2 deve ser maior que data1.
Edição feita por: Eclesiastes, 12/06/2006, 11:58.
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29
#5
Posted 12/06/2006, 15:23
É exatamente o que precisava, mas como faço para jogar este resultado em uma variável, quando faço dese jeito:
$total = ('%02d:%02d', $nHoras , $nMinutos); //linha 10
Ele exibe este erro
Parse error: parse error, unexpected ',' in D:\inetpub\wwwroot\desenvolvimento\dif_data.php on line 10
Valeu mesmo..
Abraços
cleiton
#6
Posted 12/06/2006, 15:26
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29
#7
Posted 28/10/2017, 06:48
Dove Acquistare Cialis Line Free Cialis Samples cheapest generic levitra Cialis Canada Free Sample Viagra Brand Online
#8
Posted 28/10/2017, 09:23
Discounts! best skin care products reviews
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Ms01k men ski suit pants + jacketsset winter sports snowboard clothing men's skiing sets waterproof windproof ( 105.80 $)
Baijiawei hot sale lock+ cover + bag laptop backpack men mochila masculina man's backpacks men's luggage & travel bags ( 69.98 $)
battlefield 3 системные требования
Onda V820w Windows 10 + Android 4.4 Tablet PC-80.30 $
Pritech professional water resistant nose and ear hair trimmer with led light ultra modern design ( 7.93 $)
купить резиновые сапоги +для рыбалки
Passazhirka Domodedova pitalas vvezti kontrabandoj starinnie ordena i moneti
Mens' zipper pu leather wallet men clutch hand bag male fashion clutch purse ( 32.78 $)
2pcs universal flexible pvc car accessories rearview mirror rain shade rainproof blades car back mirror eyebrow ( 1.47 $)
Top quality 24 fret maple inlay bird electric guitar neck rosewood fingerboard guitar parts musical instruments accessories ( 110.40 $)
Ophir 0.5mm cake airbrush kit with peach-shape pink mini air compressor for cosmetics tattoo nail art paint _ac052p+006+035+065 ( 103.54 $)
left 4 dead
High Security 150Mbps Mini USB2.0 Wireless Network Card WiFi Converter Built in 2dBi Antenna for Home Office ( $3.14 )
Infrared Barrier Sensor Module for DIY Project ( $0.99 )
Hot sale 2016 Cats Printing women Handbags Shell bag women PU leather messenger bags new arrival women cross-body bags WLHB1116 ( 47.77 $)
Discounts! best face beauty products
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
SJ X300 - 2C RC Quadcopter-46.49 $
7a brazilian kinky curly virgin hair 3pcs mink brazilian curly weave human hair bundles fashion queen deep curly brazilian hair ( 86.43 $)
V Balashihe zhiloj dom treshit po shvam
Televizionnij sezon 2013/14 (SShA)
Surferss Paradise Multicolor Landscape Print Slip On Sneaker ( 166.00 $)
Vontron osmosis ulp21-4040 ro membrane element 2400 gpd for water filter ( 140.48 $)
игра modern combat 2
Blue stitch onesies pajamas cartoon animal cosplay pyjamas adult onesies costume party dress halloween pijamas ( 13.47 $)
резиновый коврик +для обуви
Walkera Rodeo 150 Racing Drone BNF ( 140.37 $)
Suction black masks deep cleansing purifying remove blackhead nose skin care mask suction whitening mud cream ( 4.25 $)
2016 new guitars 40-13 40 inch high quality acoustic guitar rosewood fingerboard guitarra with guitar strings ( 132.05 $)
Igri, napravlennie na razvitie logiki, vnimaniya, vospriyatiya, terpeniya
DIY Tetris Night Light-23.89 $
Multifunction designer backpacks women preppy bookbags mochilas mujer rivet leather backpack lady large capacity mochila escolar ( 49.94 $)
#9
Posted 28/10/2017, 15:12
#10
Posted 28/10/2017, 17:52
Priligy Est Securisee Cialis Gibraltar Adult Dosage Amoxicillin generic viagra Priligy Precio En Venezuela Viagra India Pharmacy Viagra Free Trial Pack
Lasix Online Uk Fluoxetine Want To Buy Medicine 500 Milligrams Of Amoxicillin And Elderly viagra online prescription Online Drugs Without Prescription Viagra Non Generico Precio Viagra Sin Receta
Cephalexin Safe For Cats viagra prescription Propecia Adverse Reactions Delivered Amoxicillin Priligy Administracion
#11
Posted 28/10/2017, 21:05
I Ran Out Of My Aciphex Viagra Cialis Levitra Online Candian generic levitra shipped from usa Pharmacy World Polarmeds Pharmacy Propecia Tarifas Farmacia
On Line Levaquin Mastercard Medication Cephalexin Indications And Uses Generic Real Pyridium Where To Buy Internet viagra Itchy Amoxicillin Rash Cilias Buy At Miami
Buy Generic Viagra 100 Mg Buy Minipress Online Calvitie Masculine En Ligne buy levitra de como y celisborrar x No Prescription Cialis Donde Comprar Viagra En Usa Buying Cytotec Online
Buy Gsk Propecia Amoxil Cheap Zithromax For Strep levitra professional Cialis C'Est Quoi
Viagra Aus Deutschland Site Serieux Vente Lioresal Trazodone Generic Brand cialis Cialis Propecia Cialis 20mg Medpex
Veterinary Keflex Levitra Nuova Formulazione viagra Propecia Halbieren Vente Legale De Kamagra
Achat Cialis Paypal cialis buy online Priligy Bericht Online Pharmacy Canada Viagra Acheter Du Cialis Sur Internet Forum
Order Brand Name Viagra Online Cialis E Salute buy cialis Acheter Du Amoxil Generique
#12
Posted 28/10/2017, 22:21
Propecia Centro Kamagra Online Di Limoges generic viagra Cialis En Ligne Pas Cher Cephalexin Alcohol Interaction
Baclofene Arret Tabac viagra Is Keflex Good For Dental Infections Comment Obtenir Cytotec
Phizer viagra Cialis Acquisto
Hplc Methods For Amoxicillin Clavulanic Acid Vpxlfromindia Viagra E Glande buy viagra Viagra Free
Buy Lasix Canada viagra Prix Cialis 10mg En Pharmacie
Levitra Price Check viagra online prescription Propecia Dosage Hair Loss Male Pattern Baldness Cialis Professional Samples
Cialis Viagra Confronto generic viagra Msd Propecia
Viagra For Sale With Debit Card Flagyl Online In Uk Amoxicillin Buy Online No Prescription viagra online prescription Clomid Fast Delivery Zithromax 4 Tablets At Once
Cheap Viagra Pills No Prescription How To Identify Amoxicillin From Mexico viagra Pet Med Amoxicillin Ist Levitra Uberdosis
#13
Posted 29/10/2017, 06:42
Cialis Mujer generic viagra Pharmacy Online Without Prescription Cialis Levitra Viagra Compare Price On Cialis 5mg No Prescription
Pre Medicate With Amoxicillin online pharmacy Macrodantin Purchase Propecia Atopico
Secure Medical viagra Priligy 30 Mg Ohne Rezept
#14
Posted 29/10/2017, 08:23
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)