8#ifndef INCLUDED_BDLT_TIMEUTIL
9#define INCLUDED_BDLT_TIMEUTIL
149#include <bdlscm_version.h>
170 k_HHMMSSMMM_HH_FACTOR = 10000000,
171 k_HHMMSSMMM_MM_FACTOR = 100000,
172 k_HHMMSSMMM_SS_FACTOR = 1000,
174 k_HHMMSS_HH_FACTOR = 10000,
175 k_HHMMSS_MM_FACTOR = 100,
177 k_HHMM_HH_FACTOR = 100
312 timeValue % k_HHMM_HH_FACTOR);
319 (timeValue % k_HHMMSS_HH_FACTOR) / k_HHMMSS_MM_FACTOR,
320 timeValue % k_HHMMSS_MM_FACTOR);
327 timeValue / k_HHMMSSMMM_HH_FACTOR,
328 (timeValue % k_HHMMSSMMM_HH_FACTOR) / k_HHMMSSMMM_MM_FACTOR,
329 (timeValue % k_HHMMSSMMM_MM_FACTOR) / k_HHMMSSMMM_SS_FACTOR,
330 timeValue % k_HHMMSSMMM_SS_FACTOR);
342 return Time(timeValue / k_HHMM_HH_FACTOR,
343 timeValue % k_HHMM_HH_FACTOR);
351 return Time(timeValue / k_HHMMSS_HH_FACTOR,
352 (timeValue % k_HHMMSS_HH_FACTOR) / k_HHMMSS_MM_FACTOR,
353 timeValue % k_HHMMSS_MM_FACTOR);
361 return Time(timeValue / k_HHMMSSMMM_HH_FACTOR,
362 (timeValue % k_HHMMSSMMM_HH_FACTOR) / k_HHMMSSMMM_MM_FACTOR,
363 (timeValue % k_HHMMSSMMM_MM_FACTOR) / k_HHMMSSMMM_SS_FACTOR,
364 timeValue % k_HHMMSSMMM_SS_FACTOR);
370 return value.
hour() * k_HHMM_HH_FACTOR + value.
minute();
376 return value.
hour() * k_HHMMSS_HH_FACTOR
377 + value.
minute() * k_HHMMSS_MM_FACTOR
384 return value.
hour() * k_HHMMSSMMM_HH_FACTOR
385 + value.
minute() * k_HHMMSSMMM_MM_FACTOR
386 + value.
second() * k_HHMMSSMMM_SS_FACTOR
Definition bdlt_time.h:196
static bool isValid(int hour, int minute=0, int second=0, int millisecond=0, int microsecond=0)
Definition bdlt_time.h:697
int second() const
Return the value of the second attribute of this time object.
Definition bdlt_time.h:928
int millisecond() const
Return the value of the millisecond attribute of this time object.
Definition bdlt_time.h:912
int minute() const
Return the value of the minute attribute of this time object.
Definition bdlt_time.h:920
int hour() const
Return the value of the hour attribute of this time object.
Definition bdlt_time.h:898
#define BSLS_ASSERT_SAFE(X)
Definition bsls_assert.h:1762
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bbldc_basicisma30360.h:112
Definition bdlt_timeutil.h:165
static int convertToHHMMSSmmm(const Time &value)
Definition bdlt_timeutil.h:382
static bool isValidHHMMSSmmm(int timeValue)
Definition bdlt_timeutil.h:324
static Time convertFromHHMMSS(int timeValue)
Definition bdlt_timeutil.h:347
static Time convertFromHHMM(int timeValue)
Definition bdlt_timeutil.h:338
static int convertToHHMMSS(const Time &value)
Definition bdlt_timeutil.h:374
static int convertToHHMM(const Time &value)
Definition bdlt_timeutil.h:368
static Time convertFromHHMMSSmmm(int timeValue)
Definition bdlt_timeutil.h:357
static bool isValidHHMM(int timeValue)
Definition bdlt_timeutil.h:309
static bool isValidHHMMSS(int timeValue)
Definition bdlt_timeutil.h:316