A brief file description. More...
#include "ink_platform.h"
#include "ink_defs.h"
#include "ink_time.h"
#include "ink_assert.h"
#include "ink_string.h"
#include <locale.h>
#include <sys/resource.h>
Go to the source code of this file.
Data Structures | |
struct | dtconv |
Defines | |
#define | DAYS_OFFSET 25508 |
Functions | |
uint64_t | ink_microseconds (int which) |
double | ink_time_wall_seconds () |
int | cftime_replacement (char *s, int maxsize, const char *format, const time_t *clock) |
int | cftime (char *s, char *format, const time_t *clock) |
ink_time_t | convert_tm (const struct tm *tp) |
char * | ink_ctime_r (const ink_time_t *clock, char *buf) |
struct tm * | ink_localtime_r (const ink_time_t *clock, struct tm *res) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_time.cc.
#define DAYS_OFFSET 25508 |
Definition at line 140 of file ink_time.cc.
Referenced by mime_days_since_epoch_to_mdy_slowcase(), and mime_parse_date().
int cftime | ( | char * | s, | |
char * | format, | |||
const time_t * | clock | |||
) |
Definition at line 130 of file ink_time.cc.
References ink_assert.
int cftime_replacement | ( | char * | s, | |
int | maxsize, | |||
const char * | format, | |||
const time_t * | clock | |||
) |
Definition at line 118 of file ink_time.cc.
References ink_assert, and ink_localtime_r().
ink_time_t convert_tm | ( | const struct tm * | tp | ) |
Definition at line 143 of file ink_time.cc.
References days.
Referenced by UpdateEntry::ComputeScheduleTime().
char* ink_ctime_r | ( | const ink_time_t * | clock, | |
char * | buf | |||
) |
Definition at line 175 of file ink_time.cc.
Referenced by Vol::db_check(), ShowCache::handleCacheEvent(), Diags::print_va(), and ShowCacheInternal::showVolVolumes().
struct tm* ink_localtime_r | ( | const ink_time_t * | clock, | |
struct tm * | res | |||
) | [read] |
Definition at line 181 of file ink_time.cc.
Referenced by cftime_replacement(), UpdateEntry::ComputeScheduleTime(), LogUtils::seconds_to_next_roll(), CongestionEntry::sprint(), LogUtils::timestamp_to_date_str(), LogUtils::timestamp_to_netscape_str(), LogUtils::timestamp_to_str(), and LogUtils::timestamp_to_time_str().
uint64_t ink_microseconds | ( | int | which | ) |
Definition at line 53 of file ink_time.cc.
References MICRO_REAL, MICRO_SYS, and MICRO_USER.
double ink_time_wall_seconds | ( | ) |
Definition at line 86 of file ink_time.cc.
Referenced by UrlLru::dump(), print_detail_stats(), and testPreProc().