DisplayTextDateFormatSupport

DisplayTextDateFormatSupport

Overview

DisplayTextDateFormatSupport là một lớp trong Aspose.Cells FOSS cho C++.

Phương pháp hỗ trợ nội bộ để định dạng ngày/giờ hiển thị văn bản.

Khóa học này cung cấp 9 phương pháp để làm việc với các đối tượng DisplayTextDateFormatSupport trong các chương trình C++. Các phương pháp có sẵn bao gồm: ContainsElapsedTimeToken, CountRepeated, DisplayTextDateFormatSupport, FindNeighborToken, FormatDateTimeValue, FormatElapsedTimeValue, IsElapsedToken, IsMinuteContext, MatchesToken. Tất cả các thành viên công cộng đều có thể truy cập vào bất kỳ ứng dụng C++ nào sau khi cài đặt Aspose.Cells FOSS cho gói C ++.

Methods

SignatureDescription
DisplayTextDateFormatSupport()Hãy gọi DisplayTextDateFormatSupport trên trường hợp này DisplayTextDateFormatSupport.
FormatDateTimeValue(value: DateTime, formatCode: std::string_view, culture: std::locale)std::stringĐịnh dạng một giá trị DateTime theo mã định dạng và địa phương.
FormatElapsedTimeValue(time: std::chrono::duration<double>, formatCode: std::string_view, culture: std::locale)std::stringĐịnh dạng một giá trị TimeSpan theo mã định dạng và địa phương.
IsElapsedToken(token: std::string_view)boolTrở lại đúng nếu token (không nhạy cảm về trường hợp) là một tokens thời gian bị mất như h, hh, m, mm, s hoặc ss.
ContainsElapsedTimeToken(formatCode: std::string_view)boolXét nghiệm cho token thời gian rò rỉ trong mã định dạng.
MatchesToken(formatCode: std::string_view, startIndex: int, token: std::string_view)boolKiểm tra xem liệu các dấu hiệu bắt đầu tại StartIndex có phù hợp với token (không nhạy cảm về trường hợp).
CountRepeated(formatCode: std::string_view, startIndex: int, token: char)intTính toán các sự kiện liên tiếp của nhân vật tại StartIndex.
IsMinuteContext(formatCode: std::string_view, startIndex: int, count: int)boolNó xác định xem một chuỗi ’m’ / ‘M’ ở vị trí đó có trong bối cảnh phút (thường hơn bề mặt tháng).
FindNeighborToken(formatCode: std::string_view, startIndex: int, direction: int)charTìm kiếm nhân vật không-whitespace gần nhất, không thoát token theo hướng từ startIndex. Returns ‘\0’ nếu không tìm thấy.

See Also

 Tiếng Việt