ifc-expressions
Version:
Parsing and evaluation of IFC expressions
30 lines (29 loc) • 1.1 kB
TypeScript
import { Value } from "./Value.js";
import { Comparable } from "./Comparable.js";
import { ExprType } from "../type/ExprType.js";
import Decimal from "decimal.js";
export declare class IfcTimeValue implements Value<IfcTimeValue>, Comparable<IfcTimeValue> {
private readonly utcDateValue;
private readonly stringRepresentation;
private readonly originalTimeZoneHours;
private readonly originalTimeZoneMinutes;
private readonly isLocal;
private readonly secondFraction;
private static readonly regex;
constructor(value: string);
static parseIfcDate(value: string): {
utcDate: Date;
secondFraction: Decimal;
originalTimeZoneHours?: number;
originalTimeZoneMinutes?: number;
isLocal: boolean;
};
static of(value: string): IfcTimeValue;
getValue(): IfcTimeValue;
getType(): ExprType;
static isIfcTimeValueType(arg: any): arg is IfcTimeValue;
static isValidStringRepresentation(str: string): boolean;
equals(other: Value<any>): boolean;
toString(): string;
compareTo(other: IfcTimeValue): number;
}