Money also explain the system development

1. php time transfer function

strtotime(date("Y-m-d H:i")) date("Y-m-d H:i",$unixtime)

 Lin Nan also find the money system development: 180-2851-0282

2. php timestamp obtained zero today  to get unix timestamp zero, you can use

$todaytime=strtotime("today")

Then use

date("Y-m-d H:i",$todaytime)

Converted to a date.

 

Timestamp into a date

 Crowdfunding repayment plan Introduction

  Crowdfunding debt app was jointly developed by the debtors jointly safeguard, the management of an open rotating tool, there is no boss, no trader, the tool does not have any profit just play the role of managing the distribution of orders.

  1, use:

  When you have debt you can use this free tool, whether you owe: credit card, mortgage, car loan, borrowers can put your various debts entered into the system, and the system will automatically calculate your debt is split into several stages of repayment, so you know at a glance when they can pay off the debt through crowdfunding

  2, crowdfunding method:

  Each of us debtors to enter the platform help points and 9 respectively 200 yuan per person than we first of 11 people, not one out of nine stages are divided, if your debt plan is not nine stages, several plans stage several times to help others, then each of us to have to help us first than the debtors, the same than you later debtors should help you crowdfunding, this time the system uses the rule thirty-three copy doubling assigned to you You stage the following 2-9 liabilities were you crowdfunding, give you 200 yuan per person.

  3, crowdfunding how to get started:

  Debt help you record your first activation Recommended 200 yuan, the ninth stage of the public who raise $ 200.

  ① you want to recommend three debtors to crowdfunding (must be a real liability) for your crowdfunding 200 yuan = 600 yuan per person to complete the first phase of the repayment

  ② When you upgrade the second stage 2 to help you on behalf of 200 yuan, you can receive your next 2 layers 9 200 yuan = 1800 yuan

  ③ help on behalf of 200 yuan 3 When you upgrade the third stage, you can receive your next layer 3 27 200 yuan = 5400 yuan

  ④ When you upgrade the fourth stage 4 Help on behalf of 200 yuan, you can receive your 4 layers 81 200 yuan = 16,200 yuan

  ⑤ help on five generations of 200 yuan fifth stage when you upgrade, you can receive your next 5 layers 243 200 yuan = 48,600 yuan

  ⑥ When you upgrade the help on the sixth stage 6 on behalf of 200 yuan, you can receive your lower six layers 729 200 yuan = 145,800 yuan

  ⑦ When you upgrade seventh stage 7 Help on behalf of 200 yuan, you can receive your next layer 7 2187 200 yuan = 437,400 yuan

  ⑧ help on behalf of 200 yuan 8 When you upgrade eighth stage, you can receive your next layer 8 6561 200 yuan = 1,312,200 yuan

  ⑨ eighth stage of the ninth stage requires you to upgrade the team must have 81 2-level members can upgrade the ninth stage.

  When you upgrade the ninth stage 9 help on behalf of 400 yuan, you can receive your next layer 9 19683 200 yuan = 3,936,600 yuan

 

Timestamp conversion functions:

date ( "Ymd H: i: s", time ()), "Ymd H: i: s" is the date format conversion, time () is to obtain the current time stamp. If a date ( "Ymd H: i: s", time ()) is displayed together, the minute and second hour; if

date ( "Ymd", time ()), only the date is displayed. E.g:

date("Y-m-d H:i:s",time())

 

date("Y-m-d",time())

 

Date to a timestamp

class  SaonekController  the extends  the Controller {   public  function  the indexAction () {    / * timestamp converted to a date not have said it to turn into a date time stamp, then we should use strtotime () * / $ Time = Time ();  // $ timestamp dATE = nowtime ( 'Ymd H: I: S', $ Time);  // generate formatted date oldtime = $  '2010-11-10 22:19:21'; $ catime = strtotime ($ oldtime);  / / date stamp is converted to nowtimes = dATE $ ( 'Ymd H: I: S', $ catime);  // date stamp and back to the    echo $ nowtimes;}} >?

 

3. php timestamp into a date, and displays different content according to the time , as just, minutes ago, hours before, today, yesterday etc.

/* 时间转换函数 */ function transTime($ustime) {  $ytime = date("Y-m-d H:i", $ustime);  $rtime = date("n月j日 H:i", $ustime);  $htime = date("H:i", $ustime);  $time = time() - $ustime;  $todaytime = strtotime("today");  $time1 = time() - $todaytime;  if ($time < 60) {   $str = '刚刚';  } else   if ($time < 60 * 60) {    $min = floor($time / 60);    $str = $min . '分钟前';   } else    if ($time < $time1) {     $str = '今天' . $htime;    } else {     $str = $rtime;    }  return $str; }

Guess you like

Origin www.cnblogs.com/l569/p/11205015.html