Convert Function to PHP

Finalizat Postat la acum 7 ani S-au achitat serviciile după ce au fost prestate
Finalizat S-au achitat serviciile după ce au fost prestate

Your job is to convert the follwing function into PHP which means: You have to write a function in PHP which returns exactly the same results as the following code:

CODE:

function getAllowedTime(string unhashedName) constant returns (uint timestamp)

{

bytes32 hash = sha3(unhashedName);

return registryStarted + (launchLength*(uint(_hash)>>128)>>128);

}

DESCRIPTION OF THE CODE:

We hash the name using keccak256, and express the result as an integer between 0 and 1. Then, we multiply that by the duration of the launch period (8 weeks) and add that to the start date (May 4th 2017 1100 UTC) to generate the time at which that name can first be auctioned.

EXAMPLE:

At current UTC Time 2017-05-07 16:10 for this name "testname" it must return: 2017-05-22 21:40

.NET Assembly Programare C Programare C++ PHP

ID Proiect: #13958619

Detalii despre proiect

10 propuneri Proiect la distanță Activ acum 7 ani

Acordat lui:

vano101

Hello. I have much experience in conmverting code from one programming language to another programming language. Also, I have experience with porting similar code to PHP (with shifts and bit arithmetic)

%selectedBids___i_sum_sub_7%%project_currencyDetails_sign_sub_8% USD în 3 zile
(1840 Recenzii)
8.0

10 freelanceri plasează o ofertă medie de 42$ pentru proiect

Jupiter33

I am an expert programmer with several years of experience in the realization of web and desktop software applications in Php language. I am interested in your project and It is quite clear the work you need. If you w Mai multe

$40 USD în 3 zile
(41 recenzii)
5.5
bdphpguru

Dear Sir, Able to start right now. I have more than 2+ years experience in web and deskop application development using C#.Net , mysql,php. Twillio sms gateway api,paypal api several api like twitter, bitcoin. Mai multe

$40 USD în 0 zile
(90 recenzii)
5.2
neerajagrawal201

hey, I have good knowledge in below mentioned skills by you. I also have some certifications in php. I can share some of demos with you if you want for better understanding. Currently I'm working on a banking project i Mai multe

$40 USD în 1 zi
(28 recenzii)
5.1
technologiesygti

We are Expert In : PHP, Mysql, Laravel, Wordpress, Symfony, SugarCRM, suiteCRM, codeigniter, Prestashop,HTML, Bootstrap, CSS, PSD to HTML We are not just looking for money OR one project, as we firmly believe in long Mai multe

$45 USD în 10 zile
(8 recenzii)
3.1