Find Jobs
Hire Freelancers

php date time, add variable number of hours to string

$30-250 USD

Concluído
Publicado há aproximadamente 11 anos

$30-250 USD

Pago na entrega
I want to add variable number of hours to a date/time string it has to work on the whole string so for example: $Time1 = "2013-01-16 23:31:01"; plus 1 hour would give "2013-01-17 00:31:01"; it also has to fit in with the existing program code, as below i would lile a sample php script as well so i can test with above strings etc //------------------------------------------------------------------------------------- // how string is made up in program $rmc_time = $rmc_parts [1]; $rmc_date = $rmc_parts [9]; // Turn the RMC timestamp into a nice Mysql timestamp $time_fix = '20' . $rmc_date [4] . $rmc_date [5] . '-' . $rmc_date [2] . $rmc_date [3] . '-' . $rmc_date [0] . $rmc_date [1] . ' ' . $rmc_time [0] . $rmc_time [1] . ':' . $rmc_time [2] . $rmc_time [3] . ':' . $rmc_time [4] . $rmc_time [5]; //------------------------------------------------------------------------------------- // later in program $no_hours_to_add = 1; if $no_hours_to_add > 0 then $time_fix = $time_fix + $no_hours_to_add end
ID do Projeto: 4136510

Sobre o projeto

7 propostas
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hi, I can show you how to do this right now.
$30 USD em 0 dia
4,1 (16 avaliações)
4,6
4,6
7 freelancers estão ofertando em média $43 USD for esse trabalho
Avatar do Usuário
Quality work assured. Ready to get started. Thanks.
$100 USD em 1 dia
5,0 (932 avaliações)
8,6
8,6
Avatar do Usuário
Sure, this is easy enough for me. Please accept my bid to get started.
$30 USD em 1 dia
5,0 (67 avaliações)
6,2
6,2
Avatar do Usuário
Hello, Not sure I understand you fully, but as I understand you need some function which will take first parameter: time in format $time = "2013-01-16 23:31:01"; and second parmeter: $number_of_hours and as a result will return time. Regards. Dima
$30 USD em 1 dia
5,0 (70 avaliações)
5,9
5,9
Avatar do Usuário
I'll be happy to add the hours offset variable properly to your source code date integration. Regards
$30 USD em 0 dia
5,0 (128 avaliações)
5,7
5,7
Avatar do Usuário
Dear sir, I have over 10 years of experience in Web Development including PHP, Smarty, MySQL, jQuery, etc. Also I am Zend Certified PHP Developer (ZCE). I can help you out with your troubles. Let's do it!
$40 USD em 0 dia
5,0 (31 avaliações)
4,7
4,7

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
Crumlin, United Kingdom
5,0
102
Método de pagamento verificado
Membro desde dez. 21, 2006

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.