When parsing a date without a specified time zone, the DateKind
parameter determines which time zone the date has.
assumeLocal
The represented time will be interpreted as local time.
assumeUTC
The represented time will be interpreted as UTC.
Converts the specified date to its string representation using the specified format string and the culture specific format information.
The date to format.
The number of hours about which to offset the date.
The format string that tells how to format the date. Please refer to the .Net date and time format specification for a complete list of possible format strings.
Converts the specified value to its string representation using the specified format string and the culture specific format information.
The number to format.
The format string that tells how to format the number. Please refer to the .Net number format specification for a complete list of possible format strings.
The culture to use for formatting. The function will use the invariant culture by default.
Converts the specified string to its Date
equivalent by using culture specific format information and formatting style.
The string to parse
The culture to use for parsing. The function will use the invariant culture by default.
The date kind to use for parsing.
Converts the specified string to its Date
equivalent by using culture specific format information and formatting style.
The string to parse
The format string that tells how to interpret the date. Please refer to the .Net date and time format specification for a complete list of possible format strings.
The culture to use for parsing. The function will use the invariant culture by default.
The date kind to use for parsing.
Converts the specified string representation of a number in a specified culture specific format to its number
equivalent. The function will
return NaN in case parsing wasn't possible.
The string to parse.
The culture to use for parsing. The function will use the invariant culture by default.
Generated using TypeDoc
Introduction
In many cases you'll want to create text output with numeric content, dates or time. On the other hand, you might want to parse numeric- or datetime values from files. To ensure the correct formatting, you can use the
piweb.format
module.import * as piweb from 'piweb'; import drawing = piweb.format;