~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/temporal.h

  • Committer: Brian Aker
  • Date: 2010-12-22 02:17:52 UTC
  • mfrom: (2016.1.7 clean)
  • mto: This revision was merged to the branch mainline in revision 2018.
  • Revision ID: brian@tangent.org-20101222021752-gmn5544aftbvwnls
Merge in code for time type, other cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
419
419
   *
420
420
   * @param Pointer to a time_t to convert to
421
421
   */
422
 
  virtual void to_time_t(time_t *to) const;
 
422
  virtual void to_time_t(time_t &to) const;
423
423
 
424
424
  /**
425
425
   * Attempts to populate the Date instance based
530
530
  void to_int32_t(int32_t *to) const;
531
531
 
532
532
  /**
 
533
   * Fills a supplied 8-byte integer pointer with an
 
534
   * integer representation of the Time
 
535
   * value. It is assume seconds past unix epoch
 
536
   *
 
537
   * @param Integer to fill.
 
538
   */
 
539
  void to_uint64_t(uint64_t &to) const;
 
540
 
 
541
  /**
533
542
   * Attempts to populate the Time instance based
534
543
   * on the contents of a supplied 4-byte integer.
535
544
   *
738
747
   *
739
748
   * @param Pointer to a time_t to convert to
740
749
   */
741
 
  void to_time_t(time_t *to) const;
 
750
  void to_time_t(time_t &to) const;
742
751
};
743
752
 
744
753
/**