PHP把秒(非时间戳)转化成钟头和分
PHP把秒(非时间戳)转化成小时和分
PHP Code网站建设:http://www.ucantech.com/
//将秒(非时间戳)转化成 ** 小时 ** 分
function sec2time($sec){
$sec = round($sec/60);
if ($sec >= 60){
$hour = floor($sec/60);
$min = $sec%60;
$res = $hour.' 小时 ';
$min != 0 && $res .= $min.' 分';
}else{
$res = $sec.' 分钟';
}
return $res;
}
时间转换成天小时分秒
PHP Code复制内容到剪贴板
class FormatSeconds
{
var $days;
var $hours;
var $minutes;
var $seconds;
function getDays()
{
return $this->days;
}
function getHours()
{
return $this->hours;
}
function getMinutes()
{
return $this->minutes;
}
function getSeconds()
{
return $this->seconds;
}
function FormatSeconds($sec)
{
$this->days = floor($sec / (24*3600));
$sec = $sec % (24*3600);
$this->hours = floor($sec / 3600);
$remainSeconds = $sec % 3600;
$this->minutes = floor($remainSeconds / 60);
$this->seconds = intval($sec - $this->hours * 3600 - $this->minutes * 60);
}
}
$fs = new FormatSeconds(360000);
print $fs->getDays();
print " ";
print $fs->getHours();
print " ";
print $fs->getMinutes();
print " "; (fblww-0110)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











U.S. Spot Ethereum ETF Launch Delayed The U.S. Securities and Exchange Commission (SEC) has delayed the launch of its spot Ethereum exchange-traded fund (ETH ETF) and required issuers to resubmit Form S-1 before July 8. This decision has resulted in the postponement of the planned launch on July 2, with the new launch expected to be in mid-July or later. Background Overview There has been a change in the review process for spot Ethereum ETFs, with Bloomberg’s senior ETF analyst Eric Balchunas commenting on the SEC’s latest decision and its impact on market expectations. Earlier last month, SEC Chairman Gary Gensler

The agency is also seeking conduct-based and "compliance with the law" injunctions. The U.S. Securities and Exchange Commission (SEC) wants to fine Terraform Labs and its former CEO DoKwon nearly $5.3 billion for violations of U.S. securities laws and fraud charges. The agency detailed its requested fine in an April 19 legal filing. The SEC is primarily seeking $4.2 billion in disgorgement and $545.7 million in prejudgment interest. The purpose of the illegally obtained proceeds is to force TerraformLabs and Kwon to return the unfair benefits they obtained between June 2021 and May 2022 through the following channels: first, selling tokens to institutional investors; second, through their relationship with Genesi

This decision comes amid the ongoing legal proceedings against Binance, one of the world's leading cryptocurrency exchanges.

The Nigeria Securities and Exchange Commission (SEC) recently launched a new registration scheme aimed at accelerating the registration process for Virtual Asset Service Providers (VASPs). According to the West African country’s securities market regulator, the move is an important amendment to existing rules aimed at bringing the regulatory framework up to date and adapting to the growing complexity of the cryptocurrency ecosystem. The Nigerian SEC sets a 30-day deadline to accelerate VASP registration. In March this year, the Nigerian SEC announced changes to digital asset issuance, issuance platforms, trading and custody rules. The most eye-catching one is to increase the VASP registration fee from N30 million. (approximately US$20,161) to 150 million naira (approximately US$100,806). This change triggered an industry

The minutes recently released by the Securities and Exchange Commission (SEC) show that the SEC Cryptocurrency Working Group (CTF) has held talks with Fidelity Investment and MITRE to discuss many key issues in crypto asset regulation. SEC and Fidelity: Pledge of crypto ETFs and related rules At this meeting, SEC and asset management giant Fidelity had in-depth exchanges on the issue of crypto asset supervision. Discussions cover: Customer protection rules related to brokerage dealers' interaction with digital asset securities (Rule15c3-3). Formulate standardized listing rules for digital asset exchange-traded products (ETPs). Clarify ETF pledged assets and operating specifications. Monitoring of blockchain tokens and financial instrument-related rewards (such as pledge income, liquidity mining)

The U.S. Securities and Exchange Commission (SEC) has officially filed an appeal against a recent court ruling that favored Ripple Labs

The U.S. Securities and Exchange Commission (SEC) has cancelled a closed-door meeting that was initially scheduled for today at 2 PM Washington time.

The fund, which is scheduled to begin trading next Wednesday, is designed to offer investors a more affordable alternative to Grayscale's existing Bitcoin Trust (GBTC).
