Join Bill Weinman for an in-depth discussion in this video Getting the current time and date, part of PostgreSQL 9 with PHP Essential Training.
Like most of the time and date functions in Postgres, getting the current time…and date follows the SQL standard closely. For example,…I can say SELECT CURRENT_TIMESTAMP and I get the current time and date out to…many microseconds, or I can just say GET CURRENT DATE and that will give me…just the current date, or I can get current time, and that will get me the current time.…You will notice that the time and the timestamp also give me this part here…which is the Time zone relative to UTC.…
I am in California in the summertime and so that's -7 hours.…If I want the be local time without the time zone, I can say SELECT…LOCALTIMESTAMP and I get this localized string without the times zone, or I can…just say GET LOCALTIME and that will give me the time component without the date component.…So these are mostly used to automatically timestamp a table, for example I'm…going to switch over here to my Exercise examples file.…
I am just going to grab a bunch of SQL here your and paste it in and what we…
- Installing PostgreSQL
- Understanding database architecture
- Inserting, updating, and deleting data in a table
- Creating a database library
- Indexing ID fields
- Storing numbers, text, and Boolean values
- Reading data
- Using casts to force type
- Using mathematical functions
- Concatenating strings
- Working with date and time functions and operators
- Defining CRUD
- Using PHP to insert, read, update, and delete rows in a database
Skill Level Beginner
PHP with MySQL Beyond the Basicswith Kevin Skoglund10h 26m Intermediate
1. Quick Start
2. Creating a Database
3. Data Types
4. Storing and Reading Data
5. SQL Expressions
6. Mathematical Functions and Operators
Using math functions3m 2s
7. String Functions and Operators
8. Date and Time Functions and Operators
9. PHP Interfaces
10. Web Applications
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.