Data Structures | Defines | Functions

ink_time.cc File Reference

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>
Include dependency graph for ink_time.cc:

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)

Detailed Description

A brief file description.

License

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 Documentation

#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().


Function Documentation

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 
)
struct tm* ink_localtime_r ( const ink_time_t clock,
struct tm *  res 
) [read]
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().