react-weekly-table
Version:
React weekly scheduler <br/> By default build time ranges for a week, supports up to 31 days <br/> Can work with different timezones, data always return to UTC+0
10 lines (9 loc) • 460 B
TypeScript
import { SchedulerColumnsProps, TimeBlock } from '../common';
/**
* Calculates timeblocks offset before output (UTC+0)
* @param blocks - current timeblocks
* @param tzOffset - current timezone offset in ms
* @param columns - used day of week count
* @returns TimeBlocks with applied offset and corrected days of week
*/
export declare const outputOffset: (blocks: TimeBlock[], tzOffset: number, columns: SchedulerColumnsProps[]) => TimeBlock[];