1904 Tarih Sistemi Uygulama
Contents
[
Hide
]
Microsoft Excel, iki tarih sistemi destekler: 1900 tarih sistemi (Windows için varsayılan Excel tarih sistemi) ve 1904 tarih sistemi. 1904 tarih sistemi, genellikle Macintosh Excel dosyalarıyla uyumluluk sağlamak için kullanılır ve Mac için Excel kullanıyorsanız varsayılan sistemdir. Aspose.Cells for Python via .NET kullanarak Excel dosyaları için 1904 tarih sistemi ayarlayabilirsiniz.
Microsoft Excel’de (örneğin Microsoft Excel 2003) 1904 tarih sistemini uygulamak için:
- Araçlar menüsünden Seçenekler‘i seçin ve Hesaplama sekmesini seçin.
- 1904 tarih sistemi seçeneğini belirleyin.
- Tamam‘a tıklayın.
Microsoft Excel’de 1904 tarih sistemini seçme |
---|
![]() |
Bunu başarmak için Aspose.Cells for Python via .NET API’lerini kullanarak örnek kodu aşağıda görebilirsiniz. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Initialize a new Workbook | |
# Open an excel file | |
workbook = Workbook(dataDir + "book1.xlsx") | |
# Implement 1904 date system | |
workbook.settings.date1904 = True | |
# Save the excel file | |
workbook.save(dataDir + "Mybook.out.xlsx") |