getdate.php var_dump($arry);

346 篇文章 0 订阅

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> getdate.php </title>
  <meta charset="UTF-8">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>

 <body>
<?php
$t=time();
var_dump($t);
$arry=getdate($t);
var_dump($arry);
echo '<hr>';
$today = getdate();
print_r($today);
?>
 </body>
</html>

int 1462358642
array
  'seconds' => int 2
  'minutes' => int 44
  'hours' => int 10
  'mday' => int 4
  'wday' => int 3
  'mon' => int 5
  'year' => int 2016
  'yday' => int 124
  'weekday' => string 'Wednesday' (length=9)
  'month' => string 'May' (length=3)
  0 => int 1462358642

Array ( [seconds] => 2 [minutes] => 44 [hours] => 10 [mday] => 4 [wday] => 3 [mon] => 5 [year] => 2016 [yday] => 124 [weekday] => Wednesday [month] => May [0] => 1462358642 ) 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
SELECT a.[Sub-Region], a.[SBU], a.[CompanyCtry], a.[Inv_CM], b.[Inv_LM], ROW_NUMBER() OVER ( PARTITION BY a.[Sub-Region], a.[SBU] ORDER BY ABS(a.[Inv_CM] - b.[Inv_LM]) DESC ) as RowNo INTO [AP_Inventory].[dbo].[Temp_vs_CY_LM] FROM ( SELECT [Sub-Region], [SBU_2023] as [SBU], [CompanyCtry], SUM([TotalInv_EUR]) as [Inv_CM] FROM [AP_Inventory].[dbo].[Inv_Details_for_PowerBI] WHERE DATEDIFF(MONTH, DATEFROMPARTS([ReportYear], [ReportMonth], 1), GETDATE()) = 1 and [StockCategory] <> 'Vendor Consignment' and [CompanyCtry] is not null GROUP BY [Sub-Region], [SBU_2023], [CompanyCtry] ) as a, ( SELECT [Sub-Region], [SBU_2023] as [SBU], [CompanyCtry], SUM([TotalInv_EUR]) as [Inv_LM] FROM [AP_Inventory].[dbo].[Inv_Details_for_PowerBI] WHERE DATEDIFF(MONTH, DATEFROMPARTS([ReportYear], [ReportMonth], 1), GETDATE()) = 2 and [StockCategory] <> 'Vendor Consignment' and [CompanyCtry] is not null GROUP BY [Sub-Region], [SBU_2023], [CompanyCtry] ) as b WHERE a.[Sub-Region] = b.[Sub-Region] and a.[SBU] = b.[SBU] and a.[CompanyCtry] = b.[CompanyCtry]; GO UPDATE a SET a.[vs_CY_LM_Content] = b.[CompanyCtry], a.[vs_CY_LM_Content_Qty] = b.[Inv_CM], a.[vs_CY_LM_Delta_Qty] = b.[Inv_CM] - b.[Inv_LM] FROM [AP_Inventory].[dbo].[Calculate_Top_Variation_V4] as a, [AP_Inventory].[dbo].[Temp_vs_CY_LM] as b WHERE a.[Organization] = b.[Sub-Region] and a.[SBU] = b.[SBU] and a.[Dimension] = '[Country]' and a.[vs_CY_LM_Rank] = b.[RowNo] and DATEDIFF(MONTH, DATEFROMPARTS(a.[Report_Year], a.[Report_Month], 1), GETDATE()) = 1; GO DROP TABLE [AP_Inventory].[dbo].[Temp_vs_CY_LM]; GO
07-14
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值