Submit Search
Upload
Time manipulation lecture 2
•
Download as PPT, PDF
•
0 likes
•
628 views
Mudasir Syed
Follow
Time manipulation lecture 2
Read less
Read more
Education
Report
Share
Report
Share
1 of 12
Download now
Recommended
Dear Fiscal Board - Chief Data Officer shares thoughts and experiences with P...
Dear Fiscal Board - Chief Data Officer shares thoughts and experiences with P...
Giancarlo Gonzalez
PHP mysql Er diagram
PHP mysql Er diagram
Mudasir Syed
DBMS PPT
DBMS PPT
Prabhu Goyal
Chap2 practice key
Chap2 practice key
IIUM
DBMS topics for BCA
DBMS topics for BCA
Adbay
Er diagrams presentation
Er diagrams presentation
Akanksha Jaiswal
198970820 p-oooooooooo
198970820 p-oooooooooo
homeworkping4
Data model and entity relationship
Data model and entity relationship
Knowledge Center Computer
Recommended
Dear Fiscal Board - Chief Data Officer shares thoughts and experiences with P...
Dear Fiscal Board - Chief Data Officer shares thoughts and experiences with P...
Giancarlo Gonzalez
PHP mysql Er diagram
PHP mysql Er diagram
Mudasir Syed
DBMS PPT
DBMS PPT
Prabhu Goyal
Chap2 practice key
Chap2 practice key
IIUM
DBMS topics for BCA
DBMS topics for BCA
Adbay
Er diagrams presentation
Er diagrams presentation
Akanksha Jaiswal
198970820 p-oooooooooo
198970820 p-oooooooooo
homeworkping4
Data model and entity relationship
Data model and entity relationship
Knowledge Center Computer
ER Model in DBMS
ER Model in DBMS
Kabindra Koirala
Entity Relationship Diagram presentation
Entity Relationship Diagram presentation
Sopov Chan
Er diagram practical examples
Er diagram practical examples
Rahul Khanwani
Erd practice exercises
Erd practice exercises
Jennifer Polack
Entity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
How to Draw an Effective ER diagram
How to Draw an Effective ER diagram
Tech_MX
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
Example of dfd with answer
Example of dfd with answer
Mahmoud Bakeer
Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
Error reporting in php
Error reporting in php
Mudasir Syed
Cookies in php lecture 2
Cookies in php lecture 2
Mudasir Syed
Cookies in php lecture 1
Cookies in php lecture 1
Mudasir Syed
Ajax
Ajax
Mudasir Syed
Reporting using FPDF
Reporting using FPDF
Mudasir Syed
Oop in php lecture 2
Oop in php lecture 2
Mudasir Syed
Oop in php lecture 2
Oop in php lecture 2
Mudasir Syed
Filing system in PHP
Filing system in PHP
Mudasir Syed
Time manipulation lecture 1
Time manipulation lecture 1
Mudasir Syed
Php Mysql
Php Mysql
Mudasir Syed
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
Mudasir Syed
Sql select
Sql select
Mudasir Syed
PHP mysql Sql
PHP mysql Sql
Mudasir Syed
More Related Content
Viewers also liked
ER Model in DBMS
ER Model in DBMS
Kabindra Koirala
Entity Relationship Diagram presentation
Entity Relationship Diagram presentation
Sopov Chan
Er diagram practical examples
Er diagram practical examples
Rahul Khanwani
Erd practice exercises
Erd practice exercises
Jennifer Polack
Entity Relationship Diagram
Entity Relationship Diagram
Shakila Mahjabin
How to Draw an Effective ER diagram
How to Draw an Effective ER diagram
Tech_MX
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
Example of dfd with answer
Example of dfd with answer
Mahmoud Bakeer
Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
Viewers also liked
(9)
ER Model in DBMS
ER Model in DBMS
Entity Relationship Diagram presentation
Entity Relationship Diagram presentation
Er diagram practical examples
Er diagram practical examples
Erd practice exercises
Erd practice exercises
Entity Relationship Diagram
Entity Relationship Diagram
How to Draw an Effective ER diagram
How to Draw an Effective ER diagram
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
Example of dfd with answer
Example of dfd with answer
Entity relationship diagram (erd)
Entity relationship diagram (erd)
More from Mudasir Syed
Error reporting in php
Error reporting in php
Mudasir Syed
Cookies in php lecture 2
Cookies in php lecture 2
Mudasir Syed
Cookies in php lecture 1
Cookies in php lecture 1
Mudasir Syed
Ajax
Ajax
Mudasir Syed
Reporting using FPDF
Reporting using FPDF
Mudasir Syed
Oop in php lecture 2
Oop in php lecture 2
Mudasir Syed
Oop in php lecture 2
Oop in php lecture 2
Mudasir Syed
Filing system in PHP
Filing system in PHP
Mudasir Syed
Time manipulation lecture 1
Time manipulation lecture 1
Mudasir Syed
Php Mysql
Php Mysql
Mudasir Syed
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
Mudasir Syed
Sql select
Sql select
Mudasir Syed
PHP mysql Sql
PHP mysql Sql
Mudasir Syed
PHP mysql Mysql joins
PHP mysql Mysql joins
Mudasir Syed
PHP mysql Introduction database
PHP mysql Introduction database
Mudasir Syed
PHP mysql Installing my sql 5.1
PHP mysql Installing my sql 5.1
Mudasir Syed
PHP mysql Database normalizatin
PHP mysql Database normalizatin
Mudasir Syed
PHP mysql Aggregate functions
PHP mysql Aggregate functions
Mudasir Syed
Form validation with built in functions
Form validation with built in functions
Mudasir Syed
Form validation server side
Form validation server side
Mudasir Syed
More from Mudasir Syed
(20)
Error reporting in php
Error reporting in php
Cookies in php lecture 2
Cookies in php lecture 2
Cookies in php lecture 1
Cookies in php lecture 1
Ajax
Ajax
Reporting using FPDF
Reporting using FPDF
Oop in php lecture 2
Oop in php lecture 2
Oop in php lecture 2
Oop in php lecture 2
Filing system in PHP
Filing system in PHP
Time manipulation lecture 1
Time manipulation lecture 1
Php Mysql
Php Mysql
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
Sql select
Sql select
PHP mysql Sql
PHP mysql Sql
PHP mysql Mysql joins
PHP mysql Mysql joins
PHP mysql Introduction database
PHP mysql Introduction database
PHP mysql Installing my sql 5.1
PHP mysql Installing my sql 5.1
PHP mysql Database normalizatin
PHP mysql Database normalizatin
PHP mysql Aggregate functions
PHP mysql Aggregate functions
Form validation with built in functions
Form validation with built in functions
Form validation server side
Form validation server side
Recently uploaded
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
LeaCamillePacle
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
National Information Standards Organization (NISO)
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
YousafMalik24
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
LigayaBacuel1
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
nelietumpap1
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
Mark Reed
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
SamikshaHamane
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
arsicmarija21
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
sqpmdrvczh
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
RaymartEstabillo3
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Celine George
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Jisc
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
Celine George
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
SherlyMaeNeri
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
InMediaRes1
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
Ashokrao Mane college of Pharmacy Peth-Vadgaon
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
AadityaSharma884161
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
9953056974 Low Rate Call Girls In Saket, Delhi NCR
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Celine George
Recently uploaded
(20)
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Time manipulation lecture 2
1.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org Hidaya Institute of Science & Technology www.histpk.org A Division of Hidaya Trust, Pakistan
2.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org TIME MANIPULATION
3.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org Lecture# 2
4.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given. •"seconds"Numeric representation of seconds 0 to 59 •"minutes" Numeric representation of minutes 0 to 59 •"hours" Numeric representation of hours 0 to 23 •"mday“ Numeric representation of the day of the month 1 to 31 •"wday“ Numeric representation of the day of the week0 (for Sunday) through 6 (for Saturday) •"mon“ Numeric representation of a month 1 through 12 •"year" A full numeric representation of a year, 4 digits Examples: 1999 or 2003 •"yday“ Numeric representation of the day of the year 0 through 365 •"weekday" A full textual representation of the day of the week Sunday through Saturday •"month" A full textual representation of a month, such as January or March January through December 0 Seconds since the Unix Epoch, similar to the values returned by time() and used by date(). System Dependent, typically -2147483648 through 2147483647. getdate()
5.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org OUTPUT print_r(getdate()); Array ( [seconds] => 52 [minutes] => 58 [hours] => 9 [mday] => 8 [wday] => 4 [mon] => 3 [year] => 2012 [yday] => 67 [weekday] =>Thursday [month] => March [0] => 1331182732 ) getdate() continued…
6.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org • Parse about any English textual datetime description into a Unix timestamp strtotime ( string $time [, int $now = time() ] ) • The function expects to be given a string containing a US English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 GMT), relative to the timestamp given in $now, or the current time if $now is not supplied. Time - A date/time string. Valid formats are explained in date and time format. Now - The timestamp which is used as a base for the calculation of relative dates. Return Type - Returns a timestamp on success, FALSE otherwise. Previous to PHP 5.1.0, this function would return -1 on failure. Example $today = strtotime("tomorrow"); echo date("d D-M-Y", $today); //11 Sat-Mar-2012 $str = strtotime("+1 week 2 days 4 hours 2 seconds"); echo date("g:i:s M-D-Y",$str) echo strtotime("next Thursday") strtotime()
7.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org • r: Displays the full date, time and timezone offset. It is equivalent to manually entering date("D, d M Y H:i:s O") Time: • a: am or pm depending on the time • A: AM or PM depending on the time • g: Hour without leading zeroes. Values are 1 through 12. • G: Hour in 24-hour format without leading zeroes. Values are 0 through 23. • h: Hour with leading zeroes. Values 01 through 12. • H: Hour in 24-hour format with leading zeroes. Values 00 through 23. • i: Minute with leading zeroes. Values 00 through 59. • s: Seconds with leading zeroes. Values 00 through 59. Important Full Date and Time:
8.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org Day: •d: Day of the month with leading zeroes. Values are 01 through 31. •j: Day of the month without leading zeroes. Values 1 through 31 •D: Day of the week abbreviations. Sun through Sat •l: Day of the week. Values Sunday through Saturday •w: Day of the week without leading zeroes. Values 0 through 6. •z: Day of the year without leading zeroes. Values 0 through 365. Important Full Date and Time: continued…
9.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org Month: •m: Month number with leading zeroes. Values 01 through 12 •n: Month number without leading zeroes. Values 1 through 12 •M: Abbreviation for the month. Values Jan through Dec •F: Normal month representation. Values January through December. •t: The number of days in the month. Values 28 through 31. Important Full Date and Time: continued…
10.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org Year: •L: 1 if it's a leap year and 0 if it isn't. •Y: A four digit year format •y: A two digit year format. Values 00 through 99. Important Full Date and Time: continued…
11.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org • U: The number of seconds since the Unix Epoch (January 1, 1970) • O: This represents the Timezone offset, which is the difference from Greenwich Meridian Time (GMT). 100 = 1 hour, -600 = -6 hours We suggest that you take a few minutes to create several timestamps using PHP's mktime function and just try out all these different letters to get your feet wet with PHP's date function. Other Formatting:
12.
© Copyright 2012
Hidaya Trust (Pakistan) ● A Non-Profit Organization ● www.hidayatrust.org / www,histpk.org 3. Make a textbox and submit button. Enter a date of birth and it will return the age. Use 1 page only. Assignments
Download now