Jump to Navigation
Home

Languages

  • English

Search form

  • About us
  • Services
  • Software
  • Resources
  • image

arathorn2005's blog

Determine in MySQL if we are in summer time or winter time (dayl

Fri, 2009-10-02 13:59 — arathorn2005
Taxonomy upgrade extras: 

[http://www.blogger.com/profile/12606038649636876830 arathorn2005] said…

Nice approach!

Try this:

SELECT IF(TIMESTAMPDIFF(HOUR , UTC_TIMESTAMP(), SYSDATE()) = 2, ‘summer time’, ‘winter time’) AS TIME;

  • Read more about Determine in MySQL if we are in summer time or winter time (dayl
Subscribe to RSS - arathorn2005's blog
  • About us

    • News
    • About FromDual
    • Contact
    • Partner
    • References
    • Newsletter
    • Press
  • Services

    • Consulting
    • Support
      • MySQL
      • DB Development
    • Remote-DBA
    • Training
      • Training Modules
      • Class Schedule
      • for Developer
      • for Administrators
      • Galera Cluster
  • Software

    • Performance Monitor
    • Ops Center
    • Backup and Recovery Manager
    • MyEnv
    • Download
  • Resources

    • Blog
    • Forum
    • Presentations
    • SQL Formatter
    • Database Health Check
    • Performance Tuning Key
    • Consulting tools
    • MySQL Configuration
  • Download

  • Recent content

Trademarks

RSS LinkedIn X / Twitter Facebook Flickr Bluesky YouTube Mastodon Matrix PeerTube Codeberg twitter

MySQL, InnoDB and Oracle are registered trademarks of Oracle Corp. MariaDB®, the sea lion logo and MaxScale® are registered trademarks of MariaDB Corp. All other trademarks are property of their respective owners. Other product or company names mentioned may be trademarks or trade names of their respective owner.