100+ results for 'php mktime'

Not the results you expected?

ezdatetime.php (https://github.com/zerustech/ezpublish.git) PHP · 502 lines

322 {

323 $arr = getdate( $this->DateTime );

324 $this->DateTime = mktime( $arr['hours'], $min, $arr['seconds'],

325 $arr['mon'], $arr['mday'], $arr['year'] );

326 }

351 function setMDYHMS( $month, $day, $year, $hour, $min, $sec = 0 )

352 {

353 $this->DateTime = mktime( $hour, $min, $sec, $month, $day, $year );

354 }

355

469

470 /*!

471 \deprecated This function is deprecated in PHP5, use the PHP5 clone keyword instead

472 Creates an exact copy of this object and returns it.

473 */

Time.php (https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 257 lines

1 <?php

2 /**

3 * qCal_Time

78 }

79 }

80 // since PHP is incapable of storing a time without a date, we use the first day of

81 // the unix epoch so that we only have the amount of seconds since the zero of unix epoch

82 // we only use gm here because we don't want the server's timezone to interfere

83 $time = gmmktime($hour, $minute, $second, 1, 1, 1970);

84 $this->time = $time;

85 $formatString = "a|A|B|g|G|h|H|i|s|u";

205 /**

206 * Set the format to use when outputting as a string

207 * @param string $format Use PHP's date() function's time-related

208 * metacharacters to set the format used when this object is printed

209 * @return $this

message.php (https://github.com/4260/OpenPNE2.git) PHP · 1044 lines

1 <?php

2 /**

3 * @copyright 2005-2008 OpenPNE Project

4 * @license http://www.php.net/license/3_01.txt PHP License 3.01

5 */

6

83 if ($year && $month) {

84 if ($day) {

85 $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day, $year));

86 $e_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, $day+1, $year));

87 } else {

88 $s_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month, 1, $year));

89 $e_date = date('Y-m-d H:i:s', mktime(0, 0, 0, $month+1, 1, $year));

Date.php (https://github.com/archoo/electionleaflets.git) PHP · 183 lines

1 <?php

2 // +----------------------------------------------------------------------+

3 // | PHP versions 4 and 5 |

8 // +----------------------------------------------------------------------+

9 // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |

10 // | API as well as database abstraction for PHP applications. |

11 // | This LICENSE is in the BSD license style. |

12 // | |

43 // +----------------------------------------------------------------------+

44 //

45 // $Id: Date.php,v 1.1 2007/09/21 07:18:03 richard Exp $

46 //

47

54 /**

55 * Several methods to convert the MDB2 native timestamp format (ISO based)

56 * to and from data structures that are convenient to worth with in side of php.

57 * For more complex date arithmetic please take a look at the Date package in PEAR

58 *

sarkaspip_filtres.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 258 lines

1 <?php

2 // =======================================================================================================================================

3 // Filtre : hauteur_majoree

9 function hauteur_majoree($img) {

10 if (!$img) return;

11 include_spip('logos.php');

12 list ($h,$l) = taille_image($img);

13 $h+=20;

25 function largeur_majoree($img, $maj = 0) {

26 if (!$img) return;

27 include_spip('logos.php');

28 list ($h,$l) = taille_image($img);

29 $l+=$maj;

112 if (!$annee) return;

113

114 $jour = date("Y-m-d H:i:s", mktime(0,0,0,1,1,$annee));

115 return $jour;

116 }

sale.php (https://gitlab.com/hazelnuts23/unitedfoodstuff) PHP · 438 lines

1 <?php

2 class ModelReportSale extends Model {

3 public function getTotalSales($data = array()) {

120 for ($i = 1; $i <= 12; $i++) {

121 $order_data[$i] = array(

122 'month' => date('M', mktime(0, 0, 0, $i)),

123 'total' => 0

124 );

ezdate.php (https://github.com/GunioRobot/ezpublish.git) PHP · 317 lines

208 $date = mktime( 0, 0, 0, $month, $day, $year );

209 else if ( $day != 0 )

210 $date = mktime( 0, 0, 0, $month, $day );

211 else

212 $date = mktime( 0, 0, 0, $month );

221 {

222 $arr = getdate( $this->Date );

223 $date = mktime( 0, 0, 0, $month + $arr['mon'], $day + $arr['mday'], $year + $arr['year'] );

224 $this->Date = $date;

225 }

285

286 /*!

287 \deprecated This function is deprecated in PHP5, use the PHP5 clone keyword instead

288 Creates an exact copy of this object and returns it.

289 */

rtc-ls1x.c (https://github.com/bergwolf/linux.git) C · 192 lines

91

92 memset(rtm, 0, sizeof(struct rtc_time));

93 t = mktime64((t & LS1X_YEAR_MASK), ls1x_get_month(v),

94 ls1x_get_day(v), ls1x_get_hour(v),

95 ls1x_get_min(v), ls1x_get_sec(v));

Abstract.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 244 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Core

23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

148 * @return int

149 */

150 public function mktime($str)

151 {

152 return Varien_Date::toTimestamp($str);

Date.php (https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git) PHP · 183 lines

1 <?php

2 // +----------------------------------------------------------------------+

3 // | PHP versions 4 and 5 |

8 // +----------------------------------------------------------------------+

9 // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |

10 // | API as well as database abstraction for PHP applications. |

11 // | This LICENSE is in the BSD license style. |

12 // | |

43 // +----------------------------------------------------------------------+

44 //

45 // $Id: Date.php,v 1.10 2006/03/01 12:15:32 lsmith Exp $

46 //

47

54 /**

55 * Several methods to convert the MDB2 native timestamp format (ISO based)

56 * to and from data structures that are convenient to worth with in side of php.

57 * For more complex date arithmetic please take a look at the Date package in PEAR

58 *

component.php (https://gitlab.com/alexprowars/bitrix) PHP · 189 lines

6 $arParams["REGISTER_PAGE"] = trim($arParams["REGISTER_PAGE"]);

7 if ($arParams["REGISTER_PAGE"] == '')

8 $arParams["REGISTER_PAGE"] = "register.php";

9

10 if ($arParams["SET_TITLE"] == '') $arParams["SET_TITLE"] = "Y";

45 if ($filter_date_from == '' && $filter_date_to == '')

46 {

47 $filter_date_from = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), mktime(0, 0, 0, date("m") - 3, 1, date("Y")));

48 $filter_date_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("SHORT")), mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")));

module.php (https://github.com/sergiygladkyy/OEF.git) PHP · 213 lines

1 <?php

2 /**

3 * Web-service action "getEmployeeHours"

128 $day = $day == 0 ? 6 : $day - 1;

129

130 $start = mktime(0,0,0, date('m', $ts), date('d', $ts) + 7 - $day, date('Y'));

131 $end = MVacation::getEndDate($hist['Schedule'], date('Y-m-d', $start), $total[0]['VacationDays']);

132

sale.php (https://github.com/zenner3000/shop.git) PHP · 441 lines

1 <?php

2 class ModelReportSale extends Model {

3 // Sales

123 for ($i = 1; $i <= 12; $i++) {

124 $order_data[$i] = array(

125 'month' => date('M', mktime(0, 0, 0, $i)),

126 'total' => 0

127 );

tca.php (https://github.com/papapapagei/rr.git) PHP · 351 lines

1 <?php

2 if (!defined ('TYPO3_MODE')) die ('Access denied.');

3

72 'default' => '0',

73 'range' => array (

74 'upper' => mktime(3, 14, 7, 1, 19, 2038),

75 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))

197 'title' => 'Link',

198 'icon' => 'link_popup.gif',

199 'script' => 'browse_links.php?mode=wizard',

200 'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'

201 )

290 'default' => '0',

291 'range' => array (

292 'upper' => mktime(3, 14, 7, 1, 19, 2038),

293 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))

TimeHHelper.php (https://github.com/Schlaefer/Saito.git) PHP · 198 lines

1 <?php

2

3 declare(strict_types=1);

50 {

51 $this->_now = time();

52 $this->_today = mktime(0, 0, 0);

53

54 // @td reimplement unsing Cake 2.2 CakeTime (?)

Human.php (https://bitbucket.org/valmy/openx.git) PHP · 188 lines

1 <?php

2 //

3 // +----------------------------------------------------------------------+

4 // | PHP Version 4 |

5 // +----------------------------------------------------------------------+

6 // | Copyright (c) 1997-2003 The PHP Group |

7 // +----------------------------------------------------------------------+

8 // | This source file is subject to version 2.0 of the PHP license, |

9 // | that is bundled with this package in the file LICENSE, and is |

10 // | available at through the world-wide-web at |

11 // | http://www.php.net/license/2_02.txt. |

12 // | If you did not receive a copy of the PHP license and are unable to |

DateTest.php (https://github.com/finger2000/horde.git) PHP · 196 lines

1 <?php

2 /**

3 * @category Horde

6 */

7

8 require_once dirname(__FILE__) . '/Autoload.php';

9

10 /**

13 * @subpackage UnitTests

14 */

15 class Horde_Date_DateTest extends PHPUnit_Framework_TestCase

16 {

17 public function setUp()

95 $date = new Horde_Date(array('mday' => 1, 'month' => 10, 'year' => 2004));

96 $this->assertEquals('1096603200', $date->timestamp());

97 $this->assertEquals('1096603200', mktime(0, 0, 0, $date->month, $date->mday, $date->year));

98

99 $date = new Horde_Date(array('mday' => 1, 'month' => 5, 'year' => 1948));

ElggPad.php (https://github.com/efault/elggpad-lite.git) PHP · 163 lines

1 <?php

2 /**

3 * Elgg EtherPad

70 }

71

72 require_once(elgg_get_plugins_path() . 'etherpad/vendors/etherpad-lite-client.php');

73

74 // Etherpad: Create an instance

94

95 //Etherpad: Create session

96 $validUntil = mktime(date("H"), date("i")+5, 0, date("m"), date("d"), date("y")); // 5 minutes in the future

97 $session = $this->get_pad_client()->createSession($this->groupID, $this->authorID, $validUntil);

98 $sessionID = $session->sessionID;

99

100 $domain = "." . parse_url(elgg_get_site_url(), PHP_URL_HOST);

101

102 if(!setcookie('sessionID', $sessionID, $validUntil, '/', $domain)){

ViewTestData.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 274 lines

1 <?php

2

3 namespace Drupal\views\Tests;

238 'age' => 25,

239 'job' => 'Singer',

240 'created' => gmmktime(0, 0, 0, 1, 1, 2000),

241 'status' => 1,

242 ],

245 'age' => 27,

246 'job' => 'Singer',

247 'created' => gmmktime(0, 0, 0, 1, 2, 2000),

248 'status' => 0,

249 ],

252 'age' => 28,

253 'job' => 'Drummer',

254 'created' => gmmktime(6, 30, 30, 1, 1, 2000),

255 'status' => 1,

256 ],

Calendar_Event.php (https://github.com/robertleeplummerjr/bluebox.git) PHP · 297 lines

1 <?php defined('SYSPATH') OR die('No direct access allowed.');

2 /**

3 * Calendar event observer class.

4 *

5 * $Id: Calendar_Event.php 3769 2008-12-15 00:48:56Z zombor $

6 *

7 * @package Calendar

8 * @author Kohana Team

9 * @copyright (c) 2007-2008 Kohana Team

10 * @license http://kohanaphp.com/license.html

11 */

12 class Calendar_Event_Core extends Event_Observer {

141

142 // Get a timestamp for the day

143 $timestamp = mktime(0, 0, 0, $month, $day, $year);

144

145 // Date conditionals

step_one.php (https://bitbucket.org/santafear/converted.git) PHP · 102 lines

1 <?php

2

3 //exemple php /var/www/webroot/converter/step_one.php /home/chroot/user1/home/user1/2 1 2

4 //exemple php /usr/local/converter/step_one.php /home/katanyou/2 1 2

5 //exemple php /var/converted/step_one.php /home/katanyou/2 1 2 (in 61.47.40.194)

6 //https://studio.ving.tv/api/wowza/getftppath

7 //https://studio.ving.tv/api/wowza/getftppathads/

70

71 /*$ffmpegInstance = new ffmpeg_movie($file_desc);

72 $length = date('H:i:s', mktime(0, 0, (int) $ffmpegInstance->getDuration(), 0, 0, 0));

73 $ffmpegInstance->getDuration();

74 $ffmpegInstance->getFrameCount();

ConvertDate.php (https://github.com/Canop/braldahim.git) PHP · 258 lines

1 <?php

2

3 /**

10 private function __construct(){}

11

12 /* Convertit un date mysql vers une date php

13 * @return date

14 */

15 public static function get_date_mysql_datetime($pattern, $pdate) {

16 $mdate = explode("-", $pdate);

17 return date($pattern, mktime(0,0,0,$mdate[1],$mdate[2],$mdate[0]));

18 }

19

20 /* Convertit un datetime mysql vers une date php

21 * @return date

22 */

Calendar_Event.php (https://github.com/cafuego/Ushahidi_Web.git) PHP · 297 lines

1 <?php defined('SYSPATH') OR die('No direct access allowed.');

2 /**

3 * Calendar event observer class.

4 *

5 * $Id: Calendar_Event.php 3917 2009-01-21 03:06:22Z zombor $

6 *

7 * @package Calendar

8 * @author Kohana Team

9 * @copyright (c) 2007-2008 Kohana Team

10 * @license http://kohanaphp.com/license.html

11 */

12 class Calendar_Event_Core extends Event_Observer {

141

142 // Get a timestamp for the day

143 $timestamp = mktime(0, 0, 0, $month, $day, $year);

144

145 // Date conditionals

date_api.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 270 lines

1 <?php

2 # MantisBT - A PHP based bugtracking system

24 * @link http://www.mantisbt.org

25 *

26 * @uses config_api.php

27 * @uses constant_inc.php

28 * @uses helper_api.php

29 * @uses html_api.php

30 * @uses lang_api.php

31 */

32

33 require_api( 'config_api.php' );

34 require_api( 'constant_inc.php' );

table-mini.php (https://bitbucket.org/codemen_iftekhar/codemen.git) PHP · 133 lines

1 <?php

2 /**

3 * The calendar widget display.

4 *

5 * You can customize this view by putting a replacement file of the same name (table-mini.php) in the events/ directory of your theme.

6 */

7

34 $startOfWeek = get_option( 'start_of_week', 0 );

35 list( $year, $month ) = split( '-', $current_date );

36 $date = mktime(12, 0, 0, $month, 1, $year); // 1st day of month as unix stamp

37 $rawOffset = date("w", $date) - $startOfWeek;

38 $offset = ( $rawOffset < 0 ) ? $rawOffset + 7 : $rawOffset; // month begins on day x

108 </table>

109

110 <a class="tribe-view-all-events" href="<?php echo tribe_get_events_link(); ?>"><?php _e('View all &raquo;', 'tribe-events-calendar'); ?></a>

111

112 <?php

set_blackout.php (https://github.com/gwu-libraries/srrs-mobile.git) PHP · 151 lines

1 <?php

2 /**

3 * Interface form for placing/modifying/viewing a blackout

7 * @author Nick Korbel <lqqkout13@users.sourceforge.net>

8 * @version 02-22-04

9 * @package phpScheduleIt

10 */

11 /**

12 * Template class

13 */

14 include_once('lib/Template.class.php');

15 /**

16 * Reservation class

17 */

18 include_once('lib/Blackout.class.php');

19

20

fdm_new_popular_lister.php (https://github.com/vaughnpaul/NOS.git) PHP · 82 lines

1 <?php

2 /*

3 $Id: fdm_new_popular_lister.php,v 1.0.0.0 2008/01/24 13:41:11 Eversun Exp $

13 ?>

14 <!-- new_popular_lister_bof //-->

15 <?php

16 $list_box_contents = array();

17 $column_list = array('FILE_LIST_NEW_DOWNLOADS', 'FILE_LIST_POPULAR_DOWNLOADS');

39 $listing1[] = $_listing;

40 }

41 $month_ago = date('Y-m-d', mktime(0, 0, 0, date('m'), date('d') - 30, date('Y')));

42 $listing_query = tep_db_query("select files_id, count(*) as number from " . TABLE_LIBRARY_FILES_DOWNLOAD . " where download_time between '" . $month_ago . "' and '" . date('Y-m-d') . "' group by files_id order by number desc limit 5");

43 $files_ids = '';

InlineTest.php (https://github.com/thewiredman/symfony.git) PHP · 155 lines

1 <?php

2

3 /*

14 use Symfony\Component\Yaml\Inline;

15

16 class InlineTest extends \PHPUnit_Framework_TestCase

17 {

18 static public function setUpBeforeClass()

24 {

25 foreach ($this->getTestsForLoad() as $yaml => $value) {

26 $this->assertEquals($value, Inline::load($yaml), sprintf('::load() converts an inline YAML to a PHP structure (%s)', $yaml));

27 }

28 }

33

34 foreach ($testsForDump as $yaml => $value) {

35 $this->assertEquals($yaml, Inline::dump($value), sprintf('::dump() converts a PHP structure to an inline YAML (%s)', $yaml));

36 }

37

session.test.php (https://github.com/cgajardo/repositorium.git) PHP · 385 lines

1 <?php

2 /**

3 * SessionComponentTest file

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests

15 * @package cake

16 * @subpackage cake.tests.cases.libs.controller.components

17 * @since CakePHP(tm) v 1.2.0.5436

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

Calendar_Event.php (https://github.com/AlinT/socorro.git) PHP · 297 lines

1 <?php defined('SYSPATH') or die('No direct script access.');

2 /**

3 * Calendar event observer class.

4 *

5 * $Id: Calendar_Event.php 2899 2008-06-25 08:04:09Z armen $

6 *

7 * @package Calendar

8 * @author Kohana Team

9 * @copyright (c) 2007-2008 Kohana Team

10 * @license http://kohanaphp.com/license.html

11 */

12 class Calendar_Event_Core extends Event_Observer {

141

142 // Get a timestamp for the day

143 $timestamp = mktime(0, 0, 0, $month, $day, $year);

144

145 // Date conditionals

shlrsvc_pointexpiration.php (https://gitlab.com/nvtdn2006/azora) PHP · 136 lines

1 <?php

2 /*

3 * 05-04-2013 FX.1304.002 Read Default CC email

4 */

5 require_once './includes/service.php';

6 ?>

7

8 <?php

9

10 $return = array();

56

57 $today = getdate();

58 $today = new DateTime(date("Y-m-d", mktime(0,0,0,$today['mon'],$today['mday'],$today['year'])));

59

60 if ($startdate < $today) {

seasons.php (https://github.com/cognitivestudios/Seasonally-Dynamic-Classes.git) PHP · 139 lines

1 <?php

2

3 /** Seasonal Dynamic CSS Class/ID Assignment

16 // Assign a date/time to test what will results will be, or use server time.

17

18 //$now = mktime(00,00,00,12,25,11);

19 $now = time();

20

99 private function set_start($m, $d, $y)

100 {

101 $start = mktime(00, 00, 00, $m, $d, $y);

102 $this->season_start = $start;

103 }

105 private function set_end($m, $d, $y)

106 {

107 $end = mktime(23, 59, 59, $m, $d, $y);

108 $this->season_end = $end;

109 }

sfWidgetFormTimeTest.php (https://github.com/proyectoalba/alba.git) PHP · 143 lines

1 <?php

2

3 /*

9 */

10

11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');

12

13 $t = new lime_test(40, new lime_output_color());

23 foreach (array(

24 '12:30:35',

25 mktime(12, 30, 35, 15, 10, 2005),

26 ) as $date)

27 {

new-broadcast.php (https://bitbucket.org/antonyravel/cape-resorts.git) PHP · 105 lines

1 <?php

2

3 function _wpr_new_broadcast_handler()

68 $timezoneOffsetInSeconds = (!$whetherToAddTimezoneOffset)?-$timezoneOffsetInSeconds:$timezoneOffsetInSeconds;

69

70 $epoch_of_scheduled_time = mktime($send_hour,$send_minutes, 0,$month,$date,$year);

71

72 if (false===$epoch_of_scheduled_time)

HolidayController.php (https://bitbucket.org/markmoskalenko/svitor.git) PHP · 178 lines

1 <?php

2 class HolidayController extends AppController

3 {

52 {

53 $date = explode('.', $holiday->date);

54 $holiday->date = mktime(00, 00, 00, $date[1], $date[0], $date[2]);

55

56 if ($holiday->date <= time())

141

142 $date = explode('.', $holiday->date);

143 $date = mktime(00, 00, 00, $date[1], $date[0], $date[2]);

144

145 if ($check_willdate && $date <= time())

ajxCustomerActions.php (https://bitbucket.org/cweiler_cik/mv2.git) PHP · 239 lines

1 <?php

2

3 session_start();

4 include("../../db.php");

5 include("../../fn.php");

115 $scanDate = date( 'm-d-Y', time() );

116 $start = $params['startTime'];

117 $finish = mktime( date("H"), date("i"), date("s"), date("m"), date("d"), date("Y") );

118 $spId = $params['sp'];

119 $test = 'F';

TalkMapper.php (https://github.com/rickogden/joind.in.git) PHP · 145 lines

1 <?php

2

3 class TalkMapper extends ApiMapper {

88 . '(select ROUND(AVG(rating)) from talk_comments tc where tc.talk_id = t.ID) as avg_rating, '

89 . 'CASE

90 WHEN (((t.date_given - 3600*24) < '.mktime(0,0,0).') and (t.date_given + (3*30*3600*24)) > '.mktime(0,0,0).') THEN 1

91 ELSE 0

92 END as comments_enabled '

fsource_Smarty_plugins_smartypluginsshared.make_timestamp.php.html (https://github.com/lilin01/haha.git) HTML · 64 lines

4 <head>

5 <!-- template designed by Marco Von Ballmoos -->

6 <title>File Source for shared.make_timestamp.php</title>

7 <link rel="stylesheet" href="../media/stylesheet.css" />

8 </head>

10 <h1>Source for file shared.make_timestamp.php</h1>

11 <p>Documentation is available at <a href="../Smarty/plugins/_smarty_plugins_shared_make_timestamp_php.html">shared.make_timestamp.php</a></p>

12 <div class="src-code">

13 <pre><ol><li><a name="a1"></a><span class="src-php">&lt;?php</span></li>

34 <li><a name="a22"></a> <span class="src-sym">} </span><span class="src-key">elseif </span><span class="src-sym">(</span><a href="http://www.php.net/preg_match">preg_match</a><span class="src-sym">(</span><span class="src-str">'/^\d{14}$/'</span><span class="src-sym">, </span><span class="src-var">$string</span><span class="src-sym">)) </span><span class="src-sym">{</span></li>

35 <li><a name="a23"></a> <span class="src-comm">// it is mysql timestamp format of YYYYMMDDHHMMSS? </span></li>

36 <li><a name="a24"></a> <span class="src-var">$time </span>= <a href="http://www.php.net/mktime">mktime</a><span class="src-sym">(</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-num">8</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">,</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-num">10</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">,</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-num">12</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">,</span></li>

37 <li><a name="a25"></a> <a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">,</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-num">6</span><span class="src-sym">, </span><span class="src-num">2</span><span class="src-sym">)</span><span class="src-sym">,</span><a href="http://www.php.net/substr">substr</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">, </span><span class="src-num">0</span><span class="src-sym">, </span><span class="src-num">4</span><span class="src-sym">))</span><span class="src-sym">;</span></li>

59 </div>

60 <p class="notes" id="credit">

61 Documentation generated on Wed, 05 Aug 2009 07:46:01 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>

62 </p>

63 </body>

session.test.php (https://github.com/Henmania/cakephp.git) PHP · 385 lines

1 <?php

2 /**

3 * SessionComponentTest file

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests

15 * @package cake

16 * @subpackage cake.tests.cases.libs.controller.components

17 * @since CakePHP(tm) v 1.2.0.5436

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

Service.php (https://github.com/rukavina/Octopus.git) PHP · 231 lines

1 <?php

2

3 /**

179 $house = $match['9'];

180 $device = $match['10'];

181 $time = mktime($match['3'], $match['4'], $match['5'], $match['1'], $match['2'], date("Y"));

182

183 if($type == ''){

manageChallenge.php (https://github.com/andyjdbest/Tennis-Masters---PBBG.git) PHP · 147 lines

1 <?php

2 /*

3 * Challenge Status = 1 - Issued, 2 - Accepted, 0 - Declined

4 */

5

6 require_once 'common.php';

7 require_once 'DBconfig.php';

8 //require_once 'checkTransfers.php';

9

10

118 $challenge[] = $ob;

119 }

120 $day = floor((mktime() - $season_start)/86400);

121

122 $q = "SELECT COUNT(id) FROM `messages` WHERE id_receiver = {$_SESSION['userid']} AND `read` = 0 AND del_receiver = 0";

WafpReportsController.php (https://github.com/sharpmachine/slingstonemedia.com.git) PHP · 163 lines

1 <?php

2 class WafpReportsController

3 {

9 $this->process_update_payments();

10 else

11 require( WAFP_VIEWS_PATH . "/wafp-reports/overview.php" );

12 }

13

15 {

16 if( $period=='current' or empty($period) )

17 $period = mktime(0, 0, 0, date('n'), 1, date('Y'));

18

19 $stats =& WafpReport::affiliate_stats( $period );

20 require( WAFP_VIEWS_PATH . "/wafp-reports/stats.php" );

21 }

22

cases_Scheduler_Edit.php (https://bitbucket.org/ferOnti/processmaker.git) PHP · 135 lines

1 <?php

2 /**

3 * cases_SchedulerNew.php

41 */

42

43 require_once 'classes/model/CaseScheduler.php';

44 require_once 'classes/model/Process.php';

45 require_once 'classes/model/Task.php';

46

47 // $G_MAIN_MENU = 'processmaker';

125 $aFields['PHP_START_DATE'] = date( 'Y-m-d' );

126 $aFields['PHP_END_DATE'] = date( 'Y-m-d', mktime( 0, 0, 0, date( 'm' ), date( 'd' ), date( 'Y' ) + 5 ) );

127

128 $G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_Scheduler_Edit.xml', '', $aFields, 'cases_Scheduler_Update' );

tca.php (https://github.com/MCDarkMaster/TYPO3v4-Core.git) PHP · 227 lines

1 <?php

2 /**

3 * System workspaces - Defines the offline workspaces available to users in TYPO3.

128 'default' => '0',

129 'range' => array(

130 'upper' => mktime(0,0,0,12,31,2020),

131 )

132 )

exportcsv.php (https://github.com/Eyepea/xivo-gallifrey.git) PHP · 174 lines

1 <?php

2

3 #

30 header('Cache-Control: private, must-revalidate');

31 header('Last-Modified: '.

32 date('D, d M Y H:i:s',mktime()).' '.

33 dwho_i18n::strftime_l('%Z',null));

34 header('Content-Disposition: attachment; filename=xivo_cdr-'.

Date.php (https://github.com/reoring/sabel.git) PHP · 389 lines

1 <?php

2

3 /**

8 * @author Ebine Yutaka <ebine.yutaka@sabel.jp>

9 * @copyright 2004-2008 Mori Reo <mori.reo@sabel.jp>

10 * @license http://www.opensource.org/licenses/bsd-license.php BSD License

11 */

12 class Helpers_Date

108 $s = (isset($arg["s"])) ? $arg["s"] : 0;

109

110 $this->timestamp = mktime($h, $i, $s, $m, $d, $y);

111 } else {

112 throw new Exception("Helpers_Date::__construct() invalid parameter.");

179 public function getLastDay()

180 {

181 $timestamp = mktime($this->getHour(),

182 $this->getMinute(),

183 $this->getSecond(),

OrderList.php (https://github.com/shryans/core.git) PHP · 263 lines

1 <?php

2 // vim: set ts=4 sw=4 sts=4 et:

3

10 * that is bundled with this package in the file LICENSE.txt.

11 * It is also available through the world-wide-web at this URL:

12 * http://opensource.org/licenses/osl-3.0.php

13 * If you did not receive a copy of the license and are unable to

14 * obtain it through the world-wide-web, please send an email

15 * to licensing@litecommerce.com so we can send you a copy immediately.

16 *

17 * PHP version 5.3.0

18 *

19 * @category LiteCommerce

20 * @author Creative Development LLC <info@cdev.ru>

21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved

22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

23 * @version GIT: $Id: 7d365c2b9b8e9386e675786474b9e68ad1de069a $

24 * @link http://www.litecommerce.com/

event.php (https://github.com/kodeplay/kodelearn.git) PHP · 143 lines

1 <?php defined('SYSPATH') or die('No direct script access.');

2

3 class Model_Event extends ORM {

51 public static function monthly_events($month, $year, $event_type = "") {

52 // first date of the month

53 $first = mktime(0, 0, 0, $month, 1, $year);

54 // last date of the month

55 $last = mktime(0, 0, 0, $month+1, 1, $year);

event.php (https://github.com/recrea/academic.git) PHP · 206 lines

1 <?php

2 require_once('models/academic_model.php');

139 function _get_timestamp($date){

140 $date_components = split("-", $date->format('Y-m-d-H-i-s'));

141 return mktime($date_components[3],$date_components[4],$date_components[5], $date_components[1], $date_components[2], $date_components[0]);

142 }

143

view.raw.php (https://github.com/amet17/webstar.git) PHP · 173 lines

1 <?php

2 /**

3 * SEF module for Joomla!

7 * @package sh404SEF-15

8 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL

9 * @version $Id: view.raw.php 1414 2010-05-23 21:04:41Z silianacom-svn $

10 */

11

111 $shSecStats['totalFlooding'] = empty($sefConfig->shSecTotalFlooding) ? $default : $sefConfig->shSecTotalFlooding;

112 $shSecStats['totalFloodingHrs'] = $shSecStats['totalFlooding']/$hours;

113 $shSecStats['totalPHP'] = empty($sefConfig->shSecTotalPHP) ? $default : $sefConfig->shSecTotalPHP;

114 $shSecStats['totalPHPHrs'] = $shSecStats['totalPHP']/$hours;

115 $shSecStats['totalPHPUserClicked'] = empty($sefConfig->shSecTotalPHPUserClicked) ? $default : $sefConfig->shSecTotalPHPUserClicked;

116 $shSecStats['totalPHPUserClickedHrs'] = $shSecStats['totalPHPUserClicked']/$hours;

124 $shSecStats['totalUserAgentDeniedPct'] = round($sefConfig->shSecTotalUserAgentDenied/$sefConfig->shSecTotalAttacks*100,1);

125 $shSecStats['totalFloodingPct'] = round($sefConfig->shSecTotalFlooding/$sefConfig->shSecTotalAttacks*100,1);

126 $shSecStats['totalPHPPct'] = round($sefConfig->shSecTotalPHP/$sefConfig->shSecTotalAttacks*100,1);

127 $shSecStats['totalPHPUserClickedPct'] = round($sefConfig->shSecTotalPHPUserClicked/$sefConfig->shSecTotalAttacks*100,1);

calendar.php (https://gitlab.com/x33n/ProjectPier-Core) PHP · 178 lines

18 ?>

19 <div class="calendar">

20 <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?></h2>

21 <?php

76 }

77 ?>

78 <th class="<?php echo $dow_class; ?>"><?php echo clean(lang(sprintf('weekday short %u', $dow ))); ?></th>

79 <?php

111 }

112 ?>

113 <td class="<?php echo $dow_class; ?>">

114 <div class="date"><?php echo $dom; ?></div>

175 <div class="prev-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $prevMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $prevMonth)))); ?> <?php echo gmdate('Y', $prevMonth); ?></a></div>

176 <div class="next-month"><a href="<?php echo get_url('milestone', 'calendar', gmdate('Ym', $nextMonth)); ?>"><?php echo clean(lang(sprintf('month %u', gmdate('m', $nextMonth)))); ?> <?php echo gmdate('Y', $nextMonth); ?></a></div>

177 </div>

178 </div>

gift_card_model.php (https://bitbucket.org/admin_malppy/malppy.git) PHP · 126 lines

1 <?php

2

3 class Gift_card_model extends CI_Model

21 {

22 $e_date = split("-", $card->expiry_date);

23 $end = mktime(0,0,0, $e_date[1], (int) $e_date[2] +1 , $e_date[0]); // add a day to account for the end date as the last viable day

24 $current = time();

25

index.php (https://github.com/ClickBooth/XTracks.git) PHP · 197 lines

1 <? include_once($_SERVER['DOCUMENT_ROOT'] . '/xtracks-app/bootstrap.php');

2

3 // Execute crons.

43

44 //the click_time is recorded in the middle of the day

45 $cronjob_time = mktime(12,0,0,$today_month,$today_day,$today_year);

46 $mysql['cronjob_time'] = mysql_real_escape_string($cronjob_time);

47 $mysql['cronjob_type'] = mysql_real_escape_string('daily');

102

103 //the click_time is recorded in the middle of the day

104 $cronjob_time = mktime($today_hour,0,0,$today_month,$today_day,$today_year);

105 $mysql['cronjob_time'] = mysql_real_escape_string($cronjob_time);

106 $mysql['cronjob_type'] = mysql_real_escape_string('hour');

159

160 //the click_time is recorded in the middle of the day

161 $cronjob_time = mktime($today_hour,$today_minute,0,$today_month,$today_day,$today_year);

162 $mysql['cronjob_time'] = mysql_real_escape_string($cronjob_time);

163 $mysql['cronjob_type'] = mysql_real_escape_string('1min');

session.test.php (https://github.com/andrerezende/SIE-2.0.git) PHP · 385 lines

1 <?php

2 /**

3 * SessionComponentTest file

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests

15 * @package cake

16 * @subpackage cake.tests.cases.libs.controller.components

17 * @since CakePHP(tm) v 1.2.0.5436

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

mailtrafficlib.php (https://bitbucket.org/Nemcio/kloxo-mr.git) PHP · 183 lines

1 <?php

2

3 class mailtraffic extends lxclass {

136 $month = get_num_for_month($month);

137 list($hour , $min , $sec ) = explode(':' , $time);

138 //$s = mktime($hour , $min , $sec , monthToInt($month), str_pad($day , 2, 0, STR_PAD_LEFT) , $year);

139 $s = @ mktime($hour, $min, $sec, $month, $day, $year);

150 list($year, $month, $day) = explode("-", $date);

151 list($hour , $min , $sec ) = explode(':' , $time);

152 //$s = mktime($hour , $min , $sec , monthToInt($month), str_pad($day , 2, 0, STR_PAD_LEFT) , $year);

153 $s = mktime($hour, $min, $sec, $month, $day, $year);

Date.php (https://github.com/finger2000/horde.git) PHP · 258 lines

1 <?php

2 /**

3 * Helper functions to handle format conversions.

4 *

5 * PHP version 5

6 *

7 * @category Kolab

10 * @author Thomas Jarosch <thomas.jarosch@intra2net.com>

11 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1

12 * @link http://pear.horde.org/index.php?package=Kolab_Server

13 */

14

15 /**

16 * Kolab date handling functions. Based upon Kolab.php from Stuart Binge.

17 *

18 * Copyright 2004-2011 Horde LLC (http://www.horde.org/)

DDDateHelper.php (https://bitbucket.org/jwerner/yii-ddautofilter.git) PHP · 194 lines

1 <?php

2 /*

3 * DDDateHelper class file

19 {

20 if($ts==null)

21 $ts=mktime();

22 return strtotime("+1 day", $ts);

23 }

27 {

28 if($ts==null)

29 $ts=mktime();

30 return strtotime("-1 day", $ts);

31 } // }}}

34 {

35 list($year,$month,$day) = explode('-',$start);

36 $start = mktime(0,0,0,$month,$day,$year);

37 list($year,$month,$day) = explode('-',$end);

38 $end = mktime(23,59,59,$month,$day,$year);

tst-mktime2.c (https://gitlab.com/Namal/glibc) C · 158 lines

37 #define N_STRINGS ((int) (sizeof (tz_strings) / sizeof (tz_strings[0])))

38

39 /* Fail if mktime fails to convert a date in the spring-forward gap.

40 Based on a problem report from Andreas Jaeger. */

41 static void

58 tm.tm_sec = 0;

59 tm.tm_isdst = -1;

60 if (mktime (&tm) == (time_t)-1)

61 exit (1);

62 }

63

64 static void

65 mktime_test1 (time_t now)

66 {

67 struct tm *lt = localtime (&now);

wce_mktime.c (https://bitbucket.org/raviyellani/opencv.git) C · 155 lines

1 /*

2 * $Id: wce_mktime.c,v 1.2 2006/04/09 16:48:18 mloskot Exp $

3 *

4 * Defines functions to convert struct tm to time_t value.

27 *

28 * MIT License:

29 * http://opensource.org/licenses/mit-license.php

30 *

31 * Contact:

39

40 /* Function used intenally to convert struct tm to a time_t value. */

41 static time_t __wceex_mktime_internal(struct tm *tmbuff, time_t _loctime_offset);

42

43 /*******************************************************************************

44 * wceex_mktime - Convert local time to calendar value in seconds since epoch.

45 *******************************************************************************/

46 time_t wceex_mktime(struct tm *tmbuff)

ctl.memberadvance.php (http://phpfor.googlecode.com/svn/trunk/) PHP · 116 lines

1 <?php

2 require_once 'objectPage.php';

33

34 function modifyDeposit() {

35 $this->begin('index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time());

36

37 if ($_POST['modify_advance'] && $_POST['type']){

47 $memberAdv = $oAdv->get(intval($_POST['member_id']));

48 if(abs($_POST['modify_advance']) > $memberAdv){

49 $this->splash('failed','index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time(),'??????? '.$memberAdv.' ??????????!');

50 }

51 $this->end($oAdv->deduct($_POST['member_id'],abs($_POST['modify_advance']),$_POST['modify_memo'],__('?????'), '', '' ,'' ,$this->op->loginName.'???'));

52 }

53 }else{

54 $this->end(false, __('??ID????'),'index.php?ctl=advance/memberadvance&act=detail&p[0]='.$_POST['member_id'].'&p[1]='.time());

55 }

56 }else{

Date.php (http://syracava.googlecode.com/svn/trunk/) PHP · 184 lines

1 <?php

2 // +----------------------------------------------------------------------+

3 // | PHP versions 4 and 5 |

8 // +----------------------------------------------------------------------+

9 // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |

10 // | API as well as database abstraction for PHP applications. |

11 // | This LICENSE is in the BSD license style. |

12 // | |

43 // +----------------------------------------------------------------------+

44 //

45 // $Id: Date.php 125 2009-08-21 01:35:18Z takuji.mezawa $

46 //

47

54 /**

55 * Several methods to convert the MDB2 native timestamp format (ISO based)

56 * to and from data structures that are convenient to worth with in side of php.

57 * For more complex date arithmetic please take a look at the Date package in PEAR

58 *

event-calendar.php (https://github.com/RyanFlannagan/Wordpress-Meetup-Plugin-.git) PHP · 120 lines

1 <?php

2

3 $group_ul_contents = "";

15 foreach ($events as $event) {

16 $event_time = $event->time + $event->utc_offset;

17 $event_date = mktime(0, 0, 0, date('n', $event_time), date('j', $event_time), date('Y', $event_time));

18 $date_key = date('Y-m-d', $event_date);

19

29

30 if (count($events_by_date) > 0) {

31 $today = mktime(0, 0, 0, date('n'), date('j'), date('Y'));

32

33 $div_contents = "";

34 for ($m = 0; $m < $number_of_months; $m++) { // 'm' counts the months, 'i' counts the weeks, 'j' counts the days in that week

35 $current_month = date('n') + $m;

36 $first_of_the_month = mktime(0, 0, 0, $current_month, 1, date('Y'));

37 $date_start = mktime(0, 0, 0, $current_month, 1-date('w', $first_of_the_month), date('Y')); // monday of the first week of the month (which may not lie in the same month)

Date.php (https://github.com/ewandor/horde.git) PHP · 258 lines

1 <?php

2 /**

3 * Helper functions to handle format conversions.

4 *

5 * PHP version 5

6 *

7 * @category Kolab

14

15 /**

16 * Kolab date handling functions. Based upon Kolab.php from Stuart Binge.

17 *

18 * Copyright 2004-2012 Horde LLC (http://www.horde.org/)

47 list($year, $month, $day) = explode('-', $date);

48

49 return mktime(0, 0, 0, $month, $day, $year);

50 }

51

log.php (https://github.com/proxima-cms/core.git) PHP · 149 lines

1 <?php defined('SYSPATH') or die('No direct script access.');

2 /**

3 * Admin log helper class

52 'date' => trim($date),

53 'log' => trim($log),

54 'path' => "{$year}/{$month}/{$day}.php",

55 'timestamp' => (string) mktime($hour, $minute, $second, $month, $day, $year)

102 $month = (int) str_replace("logs/{$year}/", '', $logs_month);

103

104 $month = date('F', mktime(0, 0, 0, $month, 1, date('Y')));

105

106 $days = array();

time_splittings_test.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 183 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

26 defined('MOODLE_INTERNAL') || die();

27

28 require_once(__DIR__ . '/../../analytics/tests/fixtures/test_target_shortname.php');

29 require_once(__DIR__ . '/../../lib/enrollib.php');

50 // Generate training data.

51 $params = array(

52 'startdate' => mktime(8, 15, 32, 10, 24, 2015),

53 'enddate' => mktime(12, 12, 31, 10, 24, 2016),

88 public function test_range_dates() {

89

90 $nov2015 = mktime(0, 0, 0, 11, 24, 2015);

91 $aug2016 = mktime(0, 0, 0, 8, 29, 2016);

nganluong.class.php (http://nukeviet-shop.googlecode.com/svn/trunk/) PHP · 198 lines

1 <?php

2

3 /**

11 **/

12

13 require_once ( NV_ROOTDIR . "/includes/class/nusoap.php" );

14

15 class NL_Checkout

115 unset( $matches );

116 preg_match( $preg_match_time, $data['CREATED_TIME'], $matches );

117 $data['CREATED_TIME'] = mktime( $matches[1], $matches[2], $matches[3], $matches[5], $matches[4], $matches[6] );

118

119 unset( $matches );

120 preg_match( $preg_match_time, $data['PAID_TIME'], $matches );

121 $data['PAID_TIME'] = mktime( $matches[1], $matches[2], $matches[3], $matches[5], $matches[4], $matches[6] );

122

123 /* CHU?N HÓA CÁC TR?NG THÁI GIAO D?CH V? CÁC TR?NG THÁI SAU

termins.php (https://github.com/mblix/ODOL.git) PHP · 148 lines

48 if ( $yearCounter == $year ) {echo('<strong>');}

49 ?>

50 <a href="<?php echo($lodo->LodoUrlSelf( "", $lodo->LODOURLTYPE_HREF ));?>&amp;year=<?php echo($yearCounter);?>"><?php echo($yearCounter);?></a>

51 <?php

99 }

100 ?>

101 <td><?php echo($packages);?> <?php echo($txtSending);?> [<a href="<?php echo($lodo->LodoUrlGet( '', $lodo->LODOURLTYPE_HREF, 'altinn.packages' ));?>&amp;terminitem=<?php echo( $terminList[ $key ]['terminitem'] );?>&amp;year=<?php echo( $terminList[ $key ]['year'] );?>&amp;status=1">Vis</a>]</td>

102 <?php

128 }

129 ?>

130 <td><?php echo($packages);?> <?php echo($txtSending);?> [<a href="<?php echo($lodo->LodoUrlGet( '', $lodo->LODOURLTYPE_HREF, 'altinn.packages' ));?>&amp;terminitem=<?php echo( $terminList[ $key ]['terminitem'] );?>&amp;year=<?php echo( $terminList[ $key ]['year'] );?>&amp;status=0">Editer</a>]</td>

131 <?php

135 }

136 ?>

137 <td>[<a href="<?php echo($lodo->LodoUrlGet( '', $lodo->LODOURLTYPE_HREF, 'altinn.packagemva' ));?>&amp;terminitem=<?php echo( $terminList[ $key ]['terminitem'] );?>&amp;year=<?php echo( $terminList[ $key ]['year'] );?>">Nytt skjema</a>]</td>

138

139 </tr>

erp_salary_mng_get_data.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 269 lines

1 <?php

2 include_once('./_common.php');

11 $month = $tmp[1];

12

13 $max_day = date('t', mktime(0, 0, 0, $month, 1, $year)); // 해당월의 마지막 날짜

14

15

main.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 186 lines

1 <?php

2

3 /**

13 {

14 $page_title = $module_info['custom_title'];

15 include ( NV_ROOTDIR . "/includes/header.php" );

16 echo nv_site_theme( '' );

17 include ( NV_ROOTDIR . "/includes/footer.php" );

23 $download_config = initial_config_data();

24

25 $today = mktime( 0, 0, 0, date( "n" ), date( "j" ), date( "Y" ) );

26 $yesterday = $today - 86400;

27

155 'view_hits' => ( int )$row['view_hits'], //

156 'download_hits' => ( int )$row['download_hits'], //

157 'more_link' => NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&amp;" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;" . NV_OP_VARIABLE . "=" . $list_cats[$row['catid']]['alias'] . "/" . $row['alias'], //

158 'edit_link' => ( defined( 'NV_IS_MODADMIN' ) ) ? NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&amp;edit=1&amp;id=" . ( int )$row['id'] : "", //

MantenimientoexternosController.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 201 lines

1 <?php

2

3 class MantenimientoexternosController extends BaseController {

57 try{

58 ob_start();

59 include(app_path().'/views/pdf/mantenimiento.php');

60 $content = ob_get_clean();

61

62 // convert to PDF

63 require_once(public_path().'/packages/html2pdf/html2pdf.class.php');

64 $html2pdf = new HTML2PDF('P', 'A4', 'es');

65 $html2pdf->pdf->SetDisplayMode('fullpage');

115 $dateproximo->add($intervalo);

116

117 //$proximomantenimiento = date('Y-m-d',mktime(0, 0, 0, $date->format('m')+1, $date->format('Y'), $date->format('d')));

118

119 $mantenimiento->rae = $input['rae'];

Sql.php (https://github.com/ggramlich/core.git) PHP · 267 lines

1 <?php

2 /**

3 *

10 * @author Antti Holvikari <anttih@gmail.com>

11 *

12 * @license http://opensource.org/licenses/bsd-license.php BSD

13 *

14 * @version $Id$

193 $timestamp = date(

194 'Y-m-d H:i:s',

195 mktime(date('H'), date('i'), date('s') - $lifetime)

196 );

197

home.php (https://gitlab.com/anurat/earththailand) PHP · 373 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2

3 class Home extends CI_Controller {

193 $data['year'] = ( empty( $year ) )? date('Y'): $year;

194 $data['month'] = ( empty( $month ) )? date('n'): $month;

195 $start_date = mktime( 0, 0, 0, $data['month'], 1, $data['year'] );

196 $end_date = mktime( 0, 0, 0, $data['month'] +1, 1, $data['year'] ) -1;

370 }

371

372 /* End of file home.php */

373 /* Location: ./application/controllers/home.php */

sfWidgetFormTimeTest.php (https://github.com/frhumanes/PLM.git) PHP · 143 lines

1 <?php

2

3 /*

9 */

10

11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');

12

13 $t = new lime_test(40);

23 foreach (array(

24 '12:30:35',

25 mktime(12, 30, 35, 15, 10, 2005),

26 ) as $date)

27 {

function.gmstrftime.html (https://bitbucket.org/stillzhl/manuals.git) HTML · 55 lines

7 </head>

8 <body><div class="manualnavbar" style="text-align: center;">

9 <div class="prev" style="text-align: left; float: left;"><a href="function.gmmktime.html">gmmktime</a></div>

10 <div class="next" style="text-align: right; float: right;"><a href="function.idate.html">idate</a></div>

11 <div class="up"><a href="ref.datetime.html">Date/Time 函数</a></div>

14 <div class="refnamediv">

15 <h1 class="refname">gmstrftime</h1>

16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">gmstrftime</span> &mdash; <span class="dc-title">

17 根据区域设置格式化 GMT/UTC 时间/日期

18 </span></p>

37 <div class="phpcode"><code><span style="color: #000000">

38 <span style="color: #0000BB">&lt;?php<br />setlocale</span><span style="color: #007700">(</span><span style="color: #0000BB">LC_TIME</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'en_US'</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">strftime</span><span style="color: #007700">(</span><span style="color: #DD0000">"%b&nbsp;%d&nbsp;%Y&nbsp;%H:%M:%S"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mktime&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">20</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">12</span><span style="color: #007700">,</span><span style="color: #0000BB">31</span><span style="color: #007700">,</span><span style="color: #0000BB">98</span><span style="color: #007700">)).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo&nbsp;</span><span style="color: #0000BB">gmstrftime</span><span style="color: #007700">(</span><span style="color: #DD0000">"%b&nbsp;%d&nbsp;%Y&nbsp;%H:%M:%S"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">mktime&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">20</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">12</span><span style="color: #007700">,</span><span style="color: #0000BB">31</span><span style="color: #007700">,</span><span style="color: #0000BB">98</span><span style="color: #007700">)).</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>

39 </span>

40 </code></div>

49

50 </div><hr /><div class="manualnavbar" style="text-align: center;">

51 <div class="prev" style="text-align: left; float: left;"><a href="function.gmmktime.html">gmmktime</a></div>

52 <div class="next" style="text-align: right; float: right;"><a href="function.idate.html">idate</a></div>

53 <div class="up"><a href="ref.datetime.html">Date/Time 函数</a></div>

archive.php (https://github.com/silentworks/wolfcms.git) PHP · 181 lines

1 <?php

2

3 /*

78 $day = isset($params[2]) ? (int) $params[2] : 1;

79

80 $this->page->time = mktime(0, 0, 0, $month, $day, (int) $params[0]);

81 } else {

82 pageNotFound();

Date.php (https://bitbucket.org/spenna/alexoo_produzione.git) PHP · 225 lines

1 <?php

2 /**

3 * aheadWorks Co.

162

163 // ===== Create the other value of the result array =====

164 $nParsedDateTimestamp = mktime($aResult['tm_hour'], $aResult['tm_min'], $aResult['tm_sec'],

165 $aResult['tm_mon'] + 1, $aResult['tm_mday'], $aResult['tm_year'] + 1900);

166

167 // Before PHP 5.1 return -1 when error

168 if(($nParsedDateTimestamp === false)

169 ||($nParsedDateTimestamp === -1)) return false;

table.php (https://github.com/mertonium/Welcome-America-WP-Theme.git) PHP · 149 lines

27 <tbody>

28 <tr>

29 <?php

30 // skip last month

31 for( $i = 1; $i <= $offset; $i++ ){

73 </tbody>

74 </table>

75 <?php

76 /**

77 * Each day in the calendar grid view will only display posts_per_page events.

126 ?>

127 ">

128 <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>

129 <div id='tooltip_<?php echo $eventId; ?>' class="tec-tooltip" style="display:none;">

132 <?php if ( !the_event_all_day($post->ID) ) : ?>

133 <div class="tec-event-date">

134 <?php if ( !empty( $start ) ) echo $start; ?>

135 <?php if ( !empty( $end ) && $start !== $end ) echo " – " . $end . '<br />'; ?>

index.php (https://github.com/Sunvas/Eleanor-CMS.git) PHP · 92 lines

1 <?php

2 /*

3 Copyright © Eleanor CMS

11 if(!defined('CMS'))die;

12 global$Eleanor;

13 $conf=include$Eleanor->module['path'].'config.php';

14 if(Eleanor::$Cache->Get($conf['n'].'-runned')===false)

15 {

80 list($near)=$R->fetch_row();

81 $near=(int)$near;

82 $totomor=strtotime('+1 DAY',mktime(0,0,0));

83 $near=$near>0 ? min($near,$totomor) : $totomor;

84

actijour_hier.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 175 lines

1 <?php

2 /*

3 +--------------------------------------------+

39 }

40 if(!$date_jour) {

41 $date_jour = date('Y-m-d', mktime(0, 0, 0, date("m"), date("d")-1, date("Y")));

42 }

43 #$aff_date_hier = date('d/m/y', mktime(0, 0, 0, date("m"), date("d")-1, date("Y")));

MoonPhase.php (https://github.com/mootinator/PDFCalendarLib.git) PHP · 183 lines

1 <?php

2 /**

3 * -MoonPhase - Calculte the percent moon phase.

113 function phase_changes($year, $month, $hours_step = 0.25)

114 {

115 $ts = mktime(0,0,0,$month,1,$year);

116 $days_in_month = date('t',$ts);

117

rtc-ls1x.c (https://gitlab.com/pine64-android/linux-3.10) C · 206 lines

94

95 memset(rtm, 0, sizeof(struct rtc_time));

96 t = mktime((t & LS1X_YEAR_MASK), ls1x_get_month(v),

97 ls1x_get_day(v), ls1x_get_hour(v),

98 ls1x_get_min(v), ls1x_get_sec(v));

adv_graph_1.php (https://gitlab.com/alexprowars/bitrix) PHP · 132 lines

1 <?php

2 define("STOP_STATISTICS", true);

3 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");

5 $STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");

6 if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));

7 include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");

8 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");

36 while($arData = $dynamic->GetNext())

37 {

38 $date = mktime(0, 0, 0, $arData["MONTH"], $arData["DAY"], $arData["YEAR"]);

39 $date_tmp = 0;

40 // arrage dates in order

fonction_parse.php (https://github.com/relaismago/outils.git) PHP · 82 lines

1 <?php

2

3 function parseCompGGC( $data, $bdd, $db_link ){

68 $dmY = preg_split( "#/#", $date[0] );

69 $hms = preg_split( "#:#", $date[1] );

70 $date = mktime( $hms[0], $hms[1], $hms[2], $dmY[1], $dmY[0], $dmY[2] );

71

72 $sql = "SELECT date FROM ggc_event e WHERE id_lanceur = '" .intval($id_lanceur). "' ";

cookie.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 91 lines

1 <?php

2 /**

3 * @package Joomla.Platform

53 * of seconds since the epoch. In other words, you'll most likely set this

54 * with the time() function plus the number of seconds before you want it

55 * to expire. Or you might use mktime(). time()+60*60*24*30 will set the

56 * cookie to expire in 30 days. If set to 0, or omitted, the cookie will

57 * expire at the end of the session (when the browser closes).

row_visitSummary.tpl (https://github.com/sseshachala/Open-Web-Analytics.git) Smarty Template · 113 lines

2 <div class="owa_visitInfobox" style="width:auto;">

3

4 <p class="owa_visitInfoboxTitle"><?php echo date("D M j G:i:s T",$row['session_timestamp']);?> &raquo; <?php echo $row['host_host'];?></p>

5

6 <table class="owa_visitInfoboxItemContainer" cellspacing="0" width="100%">

30 <?php if ($row['host_city']):?>

31 <span class="owa_userGeoLabel"><?php echo $row['host_city'];?>, <?php echo $row['host_country'];?></span>

32 <?php endif;?>

65 <TD valign="top">

66 <span class="">

67 <a href="<?php echo $row['document_url'];?>"><?php echo $row['document_page_title'];?></a>

68 </span>

69 <span class="owa_secondaryText">

89 <a href="<?php echo $row['referer_url'];?>">

90 <?php if (!empty($row['referer_page_title'])):?><?php echo $this->truncate($row['referer_page_title'], 80, '...');?></span></a><BR><span class="info_text"><?php echo $this->truncate($row['referer_url'], 80, '...');?><?php else:?><?php echo $this->truncate($row['referer_url'], 80, '...');?><?php endif;?></a>

91 </span>

92

Date.php (https://github.com/purpool/purpool.git) PHP · 183 lines

1 <?php

2 // +----------------------------------------------------------------------+

3 // | PHP versions 4 and 5 |

8 // +----------------------------------------------------------------------+

9 // | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |

10 // | API as well as database abstraction for PHP applications. |

11 // | This LICENSE is in the BSD license style. |

12 // | |

43 // +----------------------------------------------------------------------+

44 //

45 // $Id: Date.php 208329 2006-03-01 12:15:38Z lsmith $

46 //

47

54 /**

55 * Several methods to convert the MDB2 native timestamp format (ISO based)

56 * to and from data structures that are convenient to worth with in side of php.

57 * For more complex date arithmetic please take a look at the Date package in PEAR

58 *

tca.php (https://github.com/ingmars/FAL-Table-Structure-Extension.git) PHP · 482 lines

1 <?php

2 if (!defined('TYPO3_MODE')) {

3 die ('Access denied.');

140 'default' => '0',

141 'range' => array (

142 'upper' => mktime(3, 14, 7, 1, 19, 2038),

143 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))

432 'default' => '0',

433 'range' => array (

434 'upper' => mktime(3, 14, 7, 1, 19, 2038),

435 'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))

ajouter_cotisation.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 75 lines

1 <?php

2 /***************************************************************************\

3 * Associaspip, extension de SPIP pour gestion d'associations

6 * @copyright Copyright (c) 2010 Emmanuel Saint-James

7 *

8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License

9 \***************************************************************************/

10

23 list($annee, $mois, $jour) = explode('-',date('Y-m-d'));

24 $mois += $categorie['duree'];

25 $contexte['validite'] = date('Y-m-d', mktime(0, 0, 0, $mois, $jour, $annee));

26 $contexte['montant'] = $categorie['prix_cotisation'];

27 } else { // le membre n'a pas de categorie

58

59 function formulaires_ajouter_cotisation_traiter_dist($id_auteur, $nom_prenom, $categorie, $validite) {

60 // partie de code grandement inspiree du code de formulaires_editer_objet_traiter dans ecrire/inc/editer.php

61 $res = array();

62 // eviter la redirection forcee par l'action...

datetime.php (https://bitbucket.org/inginer/yashr1_1.git) PHP · 281 lines

1 <?php

2 /**

3 * Created by JetBrains PhpStorm.

209 $end.= date('H:i', $date);

210 }

211 elseif (date('dmy', $date)==date('dmy', mktime(0, 0, 0, date('m'), date('d')+1, date('y'))))

212 {

213 $end.=self::t('завтра');

214 }

215 elseif (date('dmy', $date)==date('dmy', mktime(0, 0, 0, date('m'), date('d')-1, date('y'))))

216 {

217 $end.=self::t('вчера');

218 }

219 elseif (date('dmy', $date)==date('dmy', mktime(0, 0, 0, date('m'), date('d')+2, date('y'))))

220 {

221 $end.=self::t('послезавтра');

Subscriptions.php (https://github.com/BlackMage/ProdigyView.git) PHP · 66 lines

1 <?php

2 //Include the DEFINES and boo the system

3 include_once('../../DEFINES.php');

4 require_once(PV_CORE.'_BootCompleteSystem.php');

5 ?>

6 <!DOCTYPE HTML>

10 </head>

11 <body>

12 <?php

13 //Create a subscription that relates to a user and content

14 $args=array(

18 'user_id'=>3,

19 'content_id'=>200,

20 'subscription_start_date'=>date("Y-m-d", mktime(0, 0, 0, date("m", time()), date("d", time())+5, date("Y", time()) )),

21 'subscription_end_date'=>date("Y-m-d", mktime(0, 0, 0, date("m", time())+1, date("d", time()), date("Y", time()) ))

Appointment.php (https://bitbucket.org/trotzek/uua_lan.git) PHP · 136 lines

1 <?php

2 if (!defined ('TYPO3_MODE')) {

3 die ('Access denied.');

75 'default' => 0,

76 'range' => array(

77 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))

78 ),

79 ),

91 'default' => 0,

92 'range' => array(

93 'lower' => mktime(0, 0, 0, date('m'), date('d'), date('Y'))

94 ),

95 ),

sys_template.php (https://github.com/TYPO3/TYPO3.CMS.git) PHP · 204 lines

1 <?php

2

3 return [

69 'default' => 0,

70 'range' => [

71 'upper' => mktime(0, 0, 0, 1, 1, 2038),

72 ],

73 ],

header_php.php (https://github.com/bitweaver/commerce.git) PHP · 134 lines

1 <?php

2 //

3 // +----------------------------------------------------------------------+

6 // | Copyright (c) 2004 The zen-cart developers |

7 // | |

8 // | http://www.zen-cart.com/index.php |

9 // | |

10 // | Portions Copyright (c) 2003 osCommerce |

20 // $Id$

21 //

22 require_once(DIR_FS_MODULES . 'require_languages.php');

23 $error = false;

24

77

78 if (($date_check_error == false) && zen_not_null($dfrom) && zen_not_null($dto)) {

79 if (mktime(0, 0, 0, $dfrom_array[1], $dfrom_array[2], $dfrom_array[0]) > mktime(0, 0, 0, $dto_array[1], $dto_array[2], $dto_array[0])) {

80 $error = true;

81

XDateTime.php (https://github.com/linepogl/oxygen.git) PHP · 206 lines

1 <?php

2

3 class XDateTime extends XValue implements Serializable {

4 private $timestamp;

5 public static function Make($year,$month,$day,$hours=0,$minutes=0,$seconds=0){

6 return new static(mktime($hours,$minutes,$seconds,$month,$day,$year));

7 }

8 public function VarExport() { return '(new '.get_called_class().'('.$this->timestamp.'))'; }

67 /** @return XDateTime */

68 public function AddYears($value){

69 return new XDateTime(mktime(

70 $this->GetHours()

71 ,$this->GetMinutes()

78 /** @return XDateTime */

79 public function AddMonths($value){

80 return new XDateTime(mktime(

81 $this->GetHours()

82 ,$this->GetMinutes()

reports_submit.php (https://github.com/dannyrealfox/Fu-Chi--Future-Chinatown.git) PHP · 110 lines

1 <div class="report_submit">

2 <h2 class="main_title">Submit A Report</h2>

3 <?php print form::open(NULL, array('enctype' => 'multipart/form-data', 'id' => 'reportForm', 'name' => 'reportForm')); ?>

4 <input type="hidden" name="latitude" id="latitude" value="<?php echo $form['latitude']; ?>">

5 <input type="hidden" name="longitude" id="longitude" value="<?php echo $form['longitude']; ?>">

6 <div class="report_form">

7

8 <?php

9 if ($form_error) {

10 ?>

13 <h3>Error!</h3>

14 <ul>

15 <?php

16 foreach ($errors as $error_item => $error_description)

17 {

country_graph.php (https://gitlab.com/alexprowars/bitrix) PHP · 100 lines

1 <?php

2 define("STOP_STATISTICS", true);

3 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");

5 $STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");

6 if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));

7 include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");

8 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");

39 foreach ($arrDays as $keyD => $arD)

40 {

41 $date = mktime(0,0,0,$arD["M"],$arD["D"],$arD["Y"]);

42 $date_tmp = 0;

43 $next_date = AddTime($prev_date,1,"D");

PadraoModelos.php (https://github.com/Eliphio/acad.git) PHP · 194 lines

1 <?php

2 class Model_PadraoModelos extends Zend_Db_Table_Abstract

3 {

46 if ($info[$k]['DATA_TYPE'] == 'datetime'){

47 list ($dia, $mes, $ano) = split ('[/.-]', $v);

48 $v = @date(("Y-m-d"),mktime(0,0,0,$mes,$dia,$ano,0));

49 }

50 if (strlen($v) > 0)

126 break;

127 }

128 $v = @date(("Y-m-d"),mktime(0,0,0,$mes,$dia,$ano,0));

129

130 $Data = new Zend_Date($v,'pt_BR');

181 break;

182 }

183 $v = @date(("Y-m-d"),mktime(0,0,0,$mes,$dia,$ano,0));

184 $Data = new Zend_Date($v,'pt_BR');

185 $v = $Data->toString('dd/MM/yyyy');

auxiliary.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 160 lines

37 $checkVal = 0;

38 if ($periodType == "I")

39 $checkVal = mktime(date("H"), date("i") - $periodLength, date("s"), date("m"), date("d"), date("Y"));

40 elseif ($periodType == "H")

41 $checkVal = mktime(date("H") - $periodLength, date("i"), date("s"), date("m"), date("d"), date("Y"));

42 elseif ($periodType == "D")

43 $checkVal = mktime(date("H"), date("i"), date("s"), date("m"), date("d") - $periodLength, date("Y"));

44 elseif ($periodType == "W")

45 $checkVal = mktime(date("H"), date("i"), date("s"), date("m"), date("d") - 7 * $periodLength, date("Y"));

46 elseif ($periodType == "M")

47 $checkVal = mktime(date("H"), date("i"), date("s"), date("m") - $periodLength, date("d"), date("Y"));

48 elseif ($periodType == "Q")

49 $checkVal = mktime(date("H"), date("i"), date("s"), date("m") - 3 * $periodLength, date("d"), date("Y"));

stats.php (https://bitbucket.org/netgen/ngstats.git) PHP · 174 lines

1 <?php

2 // SOFTWARE NAME:

3 // SOFTWARE RELEASE: 1.1

90

91 //setting the module param begindate

92 $begindate = mktime(0, 0, 0, 1, 1, 1972);

93 $bd = 1;

94 $bm = 1;

118 }

119

120 $begindate = mktime(0, 0, 0, $bm, $bd, $by);

121

122 //setting the module param enddate

150

151 if ( ($ed!=0) && ($em!=0) && ($ey!=0) ) {

152 $enddate = mktime(23, 59, 59, $em, $ed, $ey);

153 }

154

gmmktime_variation2.php (https://github.com/tstarling/hiphop-php.git) PHP · 95 lines

1 <?php

2 /* Prototype : int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]])

3 * Description: Get UNIX timestamp for a GMT date

4 * Source code: ext/date/php_date.c

5 * Alias to functions:

6 */

7

8 echo "*** Testing gmmktime() : usage variation ***\n";

9

10 // Initialise function arguments not being substituted (if any)

89 foreach($inputs as $key =>$value) {

90 echo "\n--$key--\n";

91 var_dump( gmmktime($hour, $value, $sec, $mon, $day, $year) );

92 };

93

calendar.plugin.php (https://github.com/somefool/habari-extras.git) PHP · 198 lines

1 <?php

2 /**

3 * Calendar

57 $this->load_text_domain('calendar');

58

59 $this->add_template('calendar', dirname(__FILE__) . '/templates/calendar.php');

60 }

61

135 }

136

137 $start_time = mktime(0, 0, 0, $month, 1, $year);

138 $end_time = mktime(0, 0, 0, $next_month, 1, $next_year);

ArgumentDateTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 319 lines

1 <?php

2

3 namespace Drupal\Tests\views\Kernel\Handler;

144 public function testWeekHandler() {

145 $this->container->get('database')->update('views_test_data')

146 ->fields(['created' => gmmktime(0, 0, 0, 9, 26, 2008)])

147 ->condition('id', 1)

148 ->execute();

149

150 $this->container->get('database')->update('views_test_data')

151 ->fields(['created' => gmmktime(0, 0, 0, 2, 29, 2004)])

152 ->condition('id', 2)

153 ->execute();

154

155 $this->container->get('database')->update('views_test_data')

156 ->fields(['created' => gmmktime(0, 0, 0, 1, 1, 2000)])

157 ->condition('id', 3)

158 ->execute();

viewChallenges.php (https://github.com/andyjdbest/Tennis-Masters---PBBG.git) PHP · 99 lines

1 <?php

2

3 require_once 'common.php';

4 require_once 'DBconfig.php';

5

6

70 }

71

72 $day = floor((mktime() - $season_start)/86400);

73

74 $q = "SELECT COUNT(id) FROM `messages` WHERE id_receiver = {$_SESSION['userid']} AND `read` = 0 AND del_receiver = 0";

95 }

96 else {

97 header("Location:index.php");

98 }

99 ?>

Cumples.php (https://github.com/sbarrat/cni3.git) PHP · 114 lines

1 <?php

2 require_once 'Sql.php';

3 require_once 'funcionesAuxiliares.php';

4 class Cumples extends Sql

5 {

89 }

90 $dia =

91 mktime(0, 0, 0, $partfecha[1] , $partfecha[0], date("Y")+$anyo);

92

93 $registros[] = array(

each.php (https://github.com/nonano/yui3.git) PHP · 65 lines

7 <div id="demo">

8 <ul>

9 <?php

10 for ($i = 1; $i <= 30; $i++) {

11 echo('<li id="item_'.$i.'">Item #'.$i.'</li>'."\n");

15 </div>

16

17 <script type="text/javascript" src="../../build/yui/yui-debug.js?bust=<?php echo(mktime()); ?>"></script>

18 <script type="text/javascript" src="../../build/attribute/attribute-debug.js?bust=<?php echo(mktime()); ?>"></script>

19 <script type="text/javascript" src="../../build/base/base-debug.js?bust=<?php echo(mktime()); ?>"></script>

20 <script type="text/javascript" src="../../build/event/event-debug.js?bust=<?php echo(mktime()); ?>"></script>

21 <script type="text/javascript" src="../../build/event-custom/event-custom-debug.js?bust=<?php echo(mktime()); ?>"></script>

22 <script type="text/javascript" src="../../build/oop/oop-debug.js?bust=<?php echo(mktime()); ?>"></script>

23 <script type="text/javascript" src="../../build/dom/dom-debug.js?bust=<?php echo(mktime()); ?>"></script>

24 <script type="text/javascript" src="../../build/node/node-debug.js?bust=<?php echo(mktime()); ?>"></script>

AdministrationstocktabacController.php (https://github.com/alesmuth/braldahim.git) PHP · 182 lines

1 <?php

2

3 /**

32

33 $creation = false;

34 $demain = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d") + 1, date("Y")));

35 $aujourdhui = date("Y-m-d H:i:s", mktime(0, 0, 0, date("m"), date("d"), date("Y")));

patient_statistics.php (https://github.com/eriknjenga/ADT.git) PHP · 195 lines

68 }

69 }

70 $chart = '<chart pieRadius="100" showPercentageValues="1" showPercentInToolTip="0" decimals="0" caption="' . $title . '" bgColor="FFFFFF" showBorder="0" bgAlpha="100" exportEnabled="1" exportHandler="' . base_url() . 'scripts/FusionCharts/ExportHandlers/PHP/FCExporter.php" exportAtClient="0" exportAction="download">';

71 foreach ($result_array as $result_element) {

72 $chart .= '<set label="' . $result_element['line'] . '" value="' . $result_element['total'] . '"/>';

103 }

104 }

105 $chart = '<chart pieRadius="100" showPercentageValues="1" showPercentInToolTip="0" decimals="0" caption="' . $title . '" bgColor="FFFFFF" showBorder="0" bgAlpha="100" exportEnabled="1" exportHandler="' . base_url() . 'scripts/FusionCharts/ExportHandlers/PHP/FCExporter.php" exportAtClient="0" exportAction="download">';

106 foreach ($result_array as $result_element) {

107 $chart .= '<set label="' . $result_element['line'] . '" value="' . $result_element['total'] . '"/>';

131

132 }

133 $chart = '<chart pieRadius="200" showPercentageValues="1" showPercentInToolTip="0" decimals="0" caption="' . $title . '" bgColor="FFFFFF" showBorder="0" bgAlpha="100" exportEnabled="1" exportHandler="' . base_url() . 'scripts/FusionCharts/ExportHandlers/PHP/FCExporter.php" exportAtClient="0" exportAction="download">';

134 foreach ($result_array as $result_element) {

135 $chart .= '<set label="' . $result_element['regimen'] . '" value="' . $result_element['total'] . '"/>';

course_test.php (https://github.com/sbourget/moodle.git) PHP · 141 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

99

100 // Valid start date unknown end date.

101 $this->course->startdate = gmmktime('0', '0', '0', 10, 24, 2015);

102 $DB->update_record('course', $this->course);

103 $courseman = new \core_analytics\course($this->course->id);

106

107 // Valid start and end date.

108 $this->course->enddate = gmmktime('0', '0', '0', 8, 27, 2016);

109 $DB->update_record('course', $this->course);

110 $courseman = new \core_analytics\course($this->course->id);

113

114 // Valid start and ongoing course.

115 $this->course->enddate = gmmktime('0', '0', '0', 8, 27, 2286);

116 $DB->update_record('course', $this->course);

117 $courseman = new \core_analytics\course($this->course->id);

DateFormatTransformationsPlugin.php (https://gitlab.com/jmcdowall/transactions) PHP · 168 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3 /**

4 * Abstract class for the date format transformations plugins

5 *

6 * @package PhpMyAdmin-Transformations

7 * @subpackage DateFormat

8 */

12 use PMA\libraries\plugins\TransformationsPlugin;

13

14 require_once 'libraries/js_escape.lib.php';

15

16 /**

17 * Provides common methods for all of the date format transformations plugins.

18 *

19 * @package PhpMyAdmin

20 */

21 abstract class DateFormatTransformationsPlugin extends TransformationsPlugin

Date.php (https://bitbucket.org/jhunsinfotech/blue-blues.git) PHP · 537 lines

1 <?php

2 /*********************************************************************************

3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0

362 }

363 if(empty($hour) && $hour !== 0) $hour = 0;

364 $this->ts = mktime($hour,$minute,$second,$month,$day,$year);

365 $this->setDateTime($this->ts);

366 }

main.php (https://github.com/jfoucher/joind.in.git) PHP · 87 lines

1 <?php

2

3 if (!isset($type)) {

25 if (!empty($year) && !empty($month)) {

26 if (!empty($day)) {

27 $subtitle .= ' for ' . date('F j, Y', mktime(0, 0, 0, $month, $day, $year));

28 } else {

29 $subtitle .= ' for ' . date('F Y', mktime(0, 0, 0, $month, 1, $year));

32 ?>

33 <h1 class="icon-event">

34 <?php if(user_is_admin()){ ?>

35 <span style="float:left">

36 <?php } ?>

37 <?php echo $title; ?><?php echo $subtitle; ?>

38 <?php if(user_is_admin()){ ?>

adv_graph_2.php (https://gitlab.com/alexprowars/bitrix) PHP · 132 lines

1 <?php

2 define("STOP_STATISTICS", true);

3 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");

5 $STAT_RIGHT = $APPLICATION->GetGroupRight("statistic");

6 if($STAT_RIGHT=="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));

7 include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/statistic/colors.php");

8 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/img.php");

38 while ($arData = $dynamic->Fetch())

39 {

40 $date = mktime(0, 0, 0, $arData["MONTH"], $arData["DAY"], $arData["YEAR"]);

41 $date_tmp = 0;

42 $next_date = AddTime($prev_date, 1, "D");